Code:
/ 4.0 / 4.0 / 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. // ==++== // // 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
- PropertyGridDesigner.cs
- ServiceDebugBehavior.cs
- ActivityInterfaces.cs
- SamlAudienceRestrictionCondition.cs
- SizeConverter.cs
- InkCanvasAutomationPeer.cs
- WebProxyScriptElement.cs
- CatchDesigner.xaml.cs
- Guid.cs
- DESCryptoServiceProvider.cs
- ParamArrayAttribute.cs
- ProviderIncompatibleException.cs
- TextTrailingCharacterEllipsis.cs
- Stack.cs
- Pkcs9Attribute.cs
- PrimitiveXmlSerializers.cs
- ToolStripDesignerAvailabilityAttribute.cs
- PropertyIDSet.cs
- FileChangesMonitor.cs
- AtomServiceDocumentSerializer.cs
- HtmlTableCell.cs
- AuthenticationManager.cs
- Tablet.cs
- ResetableIterator.cs
- TemplatedMailWebEventProvider.cs
- ServicesExceptionNotHandledEventArgs.cs
- IBuiltInEvidence.cs
- AnnotationHighlightLayer.cs
- TCPListener.cs
- TypeDescriptionProviderAttribute.cs
- FileLevelControlBuilderAttribute.cs
- PropertyDescriptorComparer.cs
- RepeaterItem.cs
- NavigationProperty.cs
- XmlAnyElementAttribute.cs
- PointValueSerializer.cs
- SByteStorage.cs
- CmsInterop.cs
- oledbmetadatacollectionnames.cs
- DefaultDialogButtons.cs
- ToolStripSeparatorRenderEventArgs.cs
- SafeNativeMethods.cs
- TraceHandler.cs
- TextTrailingWordEllipsis.cs
- GridViewDeleteEventArgs.cs
- OutputCacheEntry.cs
- DocumentViewerBaseAutomationPeer.cs
- HtmlInputFile.cs
- FileCodeGroup.cs
- EntityCollection.cs
- ConstructorBuilder.cs
- filewebrequest.cs
- SerializationObjectManager.cs
- ClientFactory.cs
- GlobalizationSection.cs
- MemoryRecordBuffer.cs
- SimpleLine.cs
- View.cs
- _CookieModule.cs
- ZipIOLocalFileDataDescriptor.cs
- cookiecontainer.cs
- FixedSOMPageConstructor.cs
- WebPartDescription.cs
- LineInfo.cs
- sqlmetadatafactory.cs
- RangeValueProviderWrapper.cs
- ViewGenResults.cs
- HwndMouseInputProvider.cs
- PrimaryKeyTypeConverter.cs
- SchemaCollectionPreprocessor.cs
- CommandSet.cs
- BamlMapTable.cs
- ToolStripLabel.cs
- RadioButton.cs
- Message.cs
- ConvertTextFrag.cs
- GridEntryCollection.cs
- HtmlTable.cs
- ExpressionBindings.cs
- DesignerAdapterAttribute.cs
- WindowsProgressbar.cs
- StylusPointPropertyUnit.cs
- ImageIndexConverter.cs
- BeginStoryboard.cs
- SQLGuid.cs
- ServerProtocol.cs
- ScrollProviderWrapper.cs
- QilStrConcat.cs
- MgmtResManager.cs
- XmlQuerySequence.cs
- _DisconnectOverlappedAsyncResult.cs
- RightsManagementEncryptionTransform.cs
- BuildManagerHost.cs
- ReflectTypeDescriptionProvider.cs
- PartialList.cs
- EventProviderWriter.cs
- MissingManifestResourceException.cs
- ITextView.cs
- IntSecurity.cs
- WindowsTokenRoleProvider.cs