Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Services / Monitoring / system / Diagnosticts / EventLogPermissionEntry.cs / 1 / EventLogPermissionEntry.cs
//---------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Diagnostics { using System.ComponentModel; using System.Security.Permissions; [ Serializable() ] public class EventLogPermissionEntry { private string machineName; private EventLogPermissionAccess permissionAccess; public EventLogPermissionEntry(EventLogPermissionAccess permissionAccess, string machineName) { if (!SyntaxCheck.CheckMachineName(machineName)) throw new ArgumentException(SR.GetString(SR.InvalidParameter, "MachineName", machineName)); this.permissionAccess = permissionAccess; this.machineName = machineName; } ///internal EventLogPermissionEntry(ResourcePermissionBaseEntry baseEntry) { this.permissionAccess = (EventLogPermissionAccess)baseEntry.PermissionAccess; this.machineName = baseEntry.PermissionAccessPath[0]; } public string MachineName { get { return this.machineName; } } public EventLogPermissionAccess PermissionAccess { get { return this.permissionAccess; } } /// internal ResourcePermissionBaseEntry GetBaseEntry() { ResourcePermissionBaseEntry baseEntry = new ResourcePermissionBaseEntry((int)this.PermissionAccess, new string[] {this.MachineName}); return baseEntry; } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OledbConnectionStringbuilder.cs
- XmlHierarchicalDataSourceView.cs
- CaretElement.cs
- CorePropertiesFilter.cs
- ComponentCollection.cs
- ButtonFlatAdapter.cs
- FamilyMapCollection.cs
- _NegotiateClient.cs
- ObfuscationAttribute.cs
- CmsInterop.cs
- RepeatInfo.cs
- DetailsViewPagerRow.cs
- WinEventWrap.cs
- StringSource.cs
- FormViewInsertedEventArgs.cs
- NotifyParentPropertyAttribute.cs
- RSACryptoServiceProvider.cs
- EditorAttribute.cs
- VectorCollectionConverter.cs
- SqlBulkCopy.cs
- ControlCachePolicy.cs
- objectresult_tresulttype.cs
- PropertyHelper.cs
- QilList.cs
- TextEditorTables.cs
- TypeContext.cs
- PingOptions.cs
- VirtualizingPanel.cs
- BaseProcessProtocolHandler.cs
- CanExecuteRoutedEventArgs.cs
- DataBoundLiteralControl.cs
- NullableDoubleSumAggregationOperator.cs
- RemotingClientProxy.cs
- ToolboxComponentsCreatingEventArgs.cs
- IfElseDesigner.xaml.cs
- Point3D.cs
- MenuItemStyle.cs
- DataBoundControlParameterTarget.cs
- DPCustomTypeDescriptor.cs
- TreePrinter.cs
- MailSettingsSection.cs
- SQLCharsStorage.cs
- StubHelpers.cs
- ByteRangeDownloader.cs
- SqlConnection.cs
- SystemUdpStatistics.cs
- TypeContext.cs
- DataBindingHandlerAttribute.cs
- ColumnWidthChangedEvent.cs
- HttpContextServiceHost.cs
- CharStorage.cs
- EdmToObjectNamespaceMap.cs
- BaseCodePageEncoding.cs
- webclient.cs
- ParallelTimeline.cs
- StyleBamlRecordReader.cs
- DocumentEventArgs.cs
- HashAlgorithm.cs
- DeviceSpecific.cs
- PropertyChange.cs
- UpdateCommand.cs
- NameSpaceEvent.cs
- ToolTipAutomationPeer.cs
- ScriptingScriptResourceHandlerSection.cs
- PkcsUtils.cs
- InkCanvasSelection.cs
- KeyFrames.cs
- XmlEntity.cs
- InstanceHandleReference.cs
- HttpRuntime.cs
- ViewGenResults.cs
- FileUpload.cs
- _SSPIWrapper.cs
- DBConcurrencyException.cs
- Membership.cs
- FlowDocumentView.cs
- DataViewListener.cs
- SQLDecimal.cs
- RightsManagementInformation.cs
- ConstraintCollection.cs
- RenderDataDrawingContext.cs
- MultipleViewProviderWrapper.cs
- ISCIIEncoding.cs
- EnvelopedPkcs7.cs
- OracleTimeSpan.cs
- AdPostCacheSubstitution.cs
- TargetControlTypeCache.cs
- StreamInfo.cs
- DispatcherHooks.cs
- PolyQuadraticBezierSegment.cs
- DbConnectionPoolCounters.cs
- SynchronizingStream.cs
- InternalReceiveMessage.cs
- RSAPKCS1SignatureFormatter.cs
- MappingSource.cs
- Preprocessor.cs
- DataSourceXmlSerializationAttribute.cs
- namescope.cs
- DependencyPropertyChangedEventArgs.cs
- PointKeyFrameCollection.cs