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
- EventWaitHandle.cs
- Vector3DCollectionConverter.cs
- ClipboardData.cs
- TouchPoint.cs
- DataGridViewComboBoxEditingControl.cs
- CompleteWizardStep.cs
- DocumentSequenceHighlightLayer.cs
- COM2ColorConverter.cs
- TextRangeEdit.cs
- WebScriptServiceHost.cs
- PropertyBuilder.cs
- AutomationEventArgs.cs
- CustomErrorsSection.cs
- ResXFileRef.cs
- AmbientLight.cs
- ReflectionTypeLoadException.cs
- CellTreeNode.cs
- PropertyGrid.cs
- HostingEnvironment.cs
- ProbeRequestResponseAsyncResult.cs
- ThicknessKeyFrameCollection.cs
- StagingAreaInputItem.cs
- StreamWriter.cs
- JumpTask.cs
- EntityContainerAssociationSet.cs
- DSASignatureDeformatter.cs
- DiscoveryDocumentLinksPattern.cs
- SchemaElementDecl.cs
- SignatureGenerator.cs
- DetailsView.cs
- ListDictionaryInternal.cs
- ArrayList.cs
- BrushMappingModeValidation.cs
- tibetanshape.cs
- SourceSwitch.cs
- RegexCapture.cs
- CountdownEvent.cs
- JsonStringDataContract.cs
- FrameworkPropertyMetadata.cs
- SectionInformation.cs
- OptionUsage.cs
- HtmlElement.cs
- LogicalExpressionTypeConverter.cs
- JapaneseLunisolarCalendar.cs
- DSASignatureDeformatter.cs
- SerializationHelper.cs
- SecurityTokenRequirement.cs
- XamlPoint3DCollectionSerializer.cs
- AddInAttribute.cs
- DrawingContext.cs
- FontStretches.cs
- SafeViewOfFileHandle.cs
- ReservationCollection.cs
- TdsEnums.cs
- ErrorStyle.cs
- ScriptReferenceEventArgs.cs
- EdmRelationshipRoleAttribute.cs
- SqlAliasesReferenced.cs
- EventProvider.cs
- HandleValueEditor.cs
- RowToParametersTransformer.cs
- DocumentReferenceCollection.cs
- PublisherIdentityPermission.cs
- ProxyManager.cs
- CodeStatementCollection.cs
- DecoderNLS.cs
- SafeBuffer.cs
- SqlBulkCopyColumnMappingCollection.cs
- WsrmMessageInfo.cs
- StorageModelBuildProvider.cs
- ConfigUtil.cs
- GeneratedView.cs
- WebPartDisplayModeEventArgs.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- DeploymentExceptionMapper.cs
- RuntimeIdentifierPropertyAttribute.cs
- ResourceContainer.cs
- TreeView.cs
- AuthorizationRuleCollection.cs
- TextEditorCharacters.cs
- QuadraticEase.cs
- RtType.cs
- ResourcePart.cs
- SystemDiagnosticsSection.cs
- SqlCacheDependency.cs
- WebFaultClientMessageInspector.cs
- AutoGeneratedFieldProperties.cs
- SQLInt32.cs
- HtmlTableCell.cs
- messageonlyhwndwrapper.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ExtenderControl.cs
- VirtualizingPanel.cs
- PersonalizationAdministration.cs
- BufferModeSettings.cs
- TransformerConfigurationWizardBase.cs
- ToolStripRenderEventArgs.cs
- FlowPosition.cs
- TraceSection.cs
- Touch.cs