Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Core / System / Diagnostics / Eventing / Reader / EventLogPermissionHolder.cs / 1305376 / EventLogPermissionHolder.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: EventLogPermissionHolder ** ** Purpose: ** Internal class that defines the permissions that are used ** throughout the Event Log classes of this namespace. ** ============================================================*/ using System; using System.Security.Permissions; namespace System.Diagnostics.Eventing.Reader { internal class EventLogPermissionHolder { public EventLogPermissionHolder() { } public static EventLogPermission GetEventLogPermission() { EventLogPermission logPermission = new EventLogPermission(); EventLogPermissionEntry permEntry = new EventLogPermissionEntry(EventLogPermissionAccess.Administer, "."); logPermission.PermissionEntries.Add(permEntry); return logPermission; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LogWriteRestartAreaAsyncResult.cs
- FieldNameLookup.cs
- GridViewSortEventArgs.cs
- XPathMessageFilter.cs
- CustomTrackingQuery.cs
- Effect.cs
- Panel.cs
- NativeRecognizer.cs
- NotifyParentPropertyAttribute.cs
- UpdateTracker.cs
- TimeoutConverter.cs
- XmlWrappingReader.cs
- CommandBinding.cs
- Command.cs
- tibetanshape.cs
- Update.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- OleDbCommand.cs
- ContentPosition.cs
- WindowsIdentity.cs
- EventMappingSettings.cs
- ArraySortHelper.cs
- EntityClientCacheKey.cs
- BmpBitmapEncoder.cs
- CodeGeneratorOptions.cs
- EntityDataSourceDesigner.cs
- PropertyPushdownHelper.cs
- UInt64Storage.cs
- AQNBuilder.cs
- TargetControlTypeAttribute.cs
- CounterCreationData.cs
- StringToken.cs
- DomainUpDown.cs
- TableRow.cs
- WSSecurityOneDotOneReceiveSecurityHeader.cs
- TcpClientCredentialType.cs
- ErrorFormatter.cs
- ScrollChrome.cs
- BitArray.cs
- ElementHostPropertyMap.cs
- DataKeyCollection.cs
- ParameterBuilder.cs
- RoutedPropertyChangedEventArgs.cs
- ClrPerspective.cs
- ToolStripArrowRenderEventArgs.cs
- SchemaElementDecl.cs
- TextDocumentView.cs
- WebPartAddingEventArgs.cs
- UIElement3DAutomationPeer.cs
- PanelStyle.cs
- WorkflowInvoker.cs
- QuotedPairReader.cs
- FloatAverageAggregationOperator.cs
- ParallelTimeline.cs
- HostedHttpTransportManager.cs
- ImageMapEventArgs.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- TerminatorSinks.cs
- InvalidPropValue.cs
- PolicyLevel.cs
- ActiveDocumentEvent.cs
- AppDomainEvidenceFactory.cs
- EndPoint.cs
- DataGridViewColumnCollection.cs
- DiscoveryUtility.cs
- TileBrush.cs
- ContainerTracking.cs
- BaseProcessor.cs
- GPRECT.cs
- XPSSignatureDefinition.cs
- XmlWrappingWriter.cs
- SmiRecordBuffer.cs
- HttpHandlersInstallComponent.cs
- EmptyReadOnlyDictionaryInternal.cs
- KnowledgeBase.cs
- ArithmeticException.cs
- ExpressionBinding.cs
- SqlInternalConnectionSmi.cs
- FileDocument.cs
- PackWebRequest.cs
- BackStopAuthenticationModule.cs
- InternalTransaction.cs
- XmlILModule.cs
- HttpResponseHeader.cs
- ScrollBarRenderer.cs
- XmlAnyElementAttribute.cs
- XmlValueConverter.cs
- ContentElementAutomationPeer.cs
- SelectionProcessor.cs
- OleDbConnectionInternal.cs
- BitmapEffectRenderDataResource.cs
- AppDomain.cs
- SchemaCollectionPreprocessor.cs
- RenderData.cs
- BamlWriter.cs
- ModelFunctionTypeElement.cs
- BindingsCollection.cs
- DataGridViewComboBoxCell.cs
- EdmScalarPropertyAttribute.cs
- HttpCacheParams.cs