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
- ExpressionConverter.cs
- UnauthorizedWebPart.cs
- Stylus.cs
- XmlArrayAttribute.cs
- XmlSchemaSequence.cs
- GiveFeedbackEventArgs.cs
- OptimizedTemplateContent.cs
- BindableTemplateBuilder.cs
- EncryptedData.cs
- FileSecurity.cs
- ComponentDispatcherThread.cs
- LockedHandleGlyph.cs
- MemberPath.cs
- LocatorBase.cs
- XmlConverter.cs
- PersonalizationProviderHelper.cs
- NumericPagerField.cs
- TextRunProperties.cs
- XPathBinder.cs
- ColorPalette.cs
- MappingException.cs
- Accessors.cs
- HtmlTableRowCollection.cs
- DSASignatureDeformatter.cs
- TreeNodeBinding.cs
- SchemaElementDecl.cs
- DetailsViewInsertedEventArgs.cs
- EditorAttribute.cs
- RuntimeHandles.cs
- FileUtil.cs
- DataBindingHandlerAttribute.cs
- BaseCAMarshaler.cs
- OracleInternalConnection.cs
- DBCommandBuilder.cs
- ServiceNotStartedException.cs
- GrammarBuilderRuleRef.cs
- Emitter.cs
- ModelPropertyImpl.cs
- TextPointer.cs
- CodeNamespaceImportCollection.cs
- XmlnsPrefixAttribute.cs
- TouchesOverProperty.cs
- MsmqInputSessionChannel.cs
- BinaryObjectInfo.cs
- StyleXamlParser.cs
- HierarchicalDataBoundControl.cs
- CatalogZone.cs
- SqlConnectionString.cs
- XmlWhitespace.cs
- ImageSource.cs
- MetadataUtilsSmi.cs
- altserialization.cs
- ProtectedConfiguration.cs
- CqlGenerator.cs
- WorkflowApplicationUnloadedException.cs
- ScaleTransform.cs
- DataTransferEventArgs.cs
- InvokeDelegate.cs
- FileLevelControlBuilderAttribute.cs
- WebHttpBindingElement.cs
- AssemblySettingAttributes.cs
- DataControlFieldCell.cs
- BamlResourceSerializer.cs
- WmfPlaceableFileHeader.cs
- HostProtectionException.cs
- HopperCache.cs
- HttpProfileGroupBase.cs
- PropertySegmentSerializationProvider.cs
- ErrorRuntimeConfig.cs
- SchemeSettingElement.cs
- SqlPersonalizationProvider.cs
- LayoutDump.cs
- AuthenticationException.cs
- ByteArrayHelperWithString.cs
- DataGridColumnStyleMappingNameEditor.cs
- FunctionNode.cs
- shaperfactoryquerycachekey.cs
- TableDetailsRow.cs
- IntSecurity.cs
- GridViewColumnCollection.cs
- SqlConnectionManager.cs
- TemplateKeyConverter.cs
- GlobalEventManager.cs
- DataErrorValidationRule.cs
- ItemContainerGenerator.cs
- SoapFormatter.cs
- FeatureSupport.cs
- LongSumAggregationOperator.cs
- UniformGrid.cs
- httpstaticobjectscollection.cs
- WorkflowDurableInstance.cs
- Bold.cs
- ToolboxItemSnapLineBehavior.cs
- Section.cs
- ErrorStyle.cs
- NavigationWindow.cs
- CultureTableRecord.cs
- GPRECTF.cs
- RestHandler.cs
- ValidatorUtils.cs