Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Services / Monitoring / system / Diagnosticts / EventSourceCreationData.cs / 1 / EventSourceCreationData.cs
using System.Security; using System.Security.Permissions; namespace System.Diagnostics { public class EventSourceCreationData { private string _logName = "Application"; private string _machineName = "."; private string _source; private string _messageResourceFile; private string _parameterResourceFile; private string _categoryResourceFile; private int _categoryCount; private EventSourceCreationData() {} public EventSourceCreationData(string source, string logName) { _source = source; _logName = logName; } internal EventSourceCreationData(string source, string logName, string machineName) { _source = source; _logName = logName; _machineName = machineName; } private EventSourceCreationData(string source, string logName, string machineName, string messageResourceFile, string parameterResourceFile, string categoryResourceFile, short categoryCount) { _source = source; _logName = logName; _machineName = machineName; _messageResourceFile = messageResourceFile; _parameterResourceFile = parameterResourceFile; _categoryResourceFile = categoryResourceFile; CategoryCount = categoryCount; } public string LogName { get { return _logName; } set { _logName = value; } } public string MachineName { get { return _machineName; } set { _machineName = value; } } public string Source { get { return _source; } set { _source = value; } } public string MessageResourceFile { get { return _messageResourceFile; } set { _messageResourceFile = value; } } public string ParameterResourceFile { get { return _parameterResourceFile; } set { _parameterResourceFile = value; } } public string CategoryResourceFile { get { return _categoryResourceFile; } set { _categoryResourceFile = value; } } public int CategoryCount { get { return _categoryCount; } set { if (value > UInt16.MaxValue || value < 0) throw new ArgumentOutOfRangeException("value"); _categoryCount = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System.Security; using System.Security.Permissions; namespace System.Diagnostics { public class EventSourceCreationData { private string _logName = "Application"; private string _machineName = "."; private string _source; private string _messageResourceFile; private string _parameterResourceFile; private string _categoryResourceFile; private int _categoryCount; private EventSourceCreationData() {} public EventSourceCreationData(string source, string logName) { _source = source; _logName = logName; } internal EventSourceCreationData(string source, string logName, string machineName) { _source = source; _logName = logName; _machineName = machineName; } private EventSourceCreationData(string source, string logName, string machineName, string messageResourceFile, string parameterResourceFile, string categoryResourceFile, short categoryCount) { _source = source; _logName = logName; _machineName = machineName; _messageResourceFile = messageResourceFile; _parameterResourceFile = parameterResourceFile; _categoryResourceFile = categoryResourceFile; CategoryCount = categoryCount; } public string LogName { get { return _logName; } set { _logName = value; } } public string MachineName { get { return _machineName; } set { _machineName = value; } } public string Source { get { return _source; } set { _source = value; } } public string MessageResourceFile { get { return _messageResourceFile; } set { _messageResourceFile = value; } } public string ParameterResourceFile { get { return _parameterResourceFile; } set { _parameterResourceFile = value; } } public string CategoryResourceFile { get { return _categoryResourceFile; } set { _categoryResourceFile = value; } } public int CategoryCount { get { return _categoryCount; } set { if (value > UInt16.MaxValue || value < 0) throw new ArgumentOutOfRangeException("value"); _categoryCount = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AggregationMinMaxHelpers.cs
- CodeSnippetExpression.cs
- SeekableReadStream.cs
- OutputChannel.cs
- XhtmlBasicImageAdapter.cs
- ZipIOModeEnforcingStream.cs
- CaseInsensitiveComparer.cs
- StrongBox.cs
- DbMetaDataFactory.cs
- TreeViewItemAutomationPeer.cs
- BinHexEncoder.cs
- ParameterElement.cs
- ListViewContainer.cs
- SerializationBinder.cs
- _DomainName.cs
- WsdlExporter.cs
- StorageAssociationSetMapping.cs
- WebControl.cs
- ExceptionHandler.cs
- ADMembershipUser.cs
- FontUnitConverter.cs
- EnglishPluralizationService.cs
- CompositeDataBoundControl.cs
- CodePropertyReferenceExpression.cs
- DetailsViewInsertedEventArgs.cs
- MenuRendererClassic.cs
- ChtmlImageAdapter.cs
- Deserializer.cs
- XsltException.cs
- HtmlInputRadioButton.cs
- BitmapEncoder.cs
- TypeSystemHelpers.cs
- HtmlFormWrapper.cs
- ParserStreamGeometryContext.cs
- DataBindingHandlerAttribute.cs
- NativeActivityAbortContext.cs
- CompositeScriptReferenceEventArgs.cs
- DbMetaDataFactory.cs
- DefaultTextStore.cs
- LinqDataSource.cs
- PolyQuadraticBezierSegment.cs
- SqlCacheDependency.cs
- Animatable.cs
- MetadataSection.cs
- SettingsPropertyNotFoundException.cs
- ArithmeticException.cs
- TextReader.cs
- TextEmbeddedObject.cs
- AuditLog.cs
- VideoDrawing.cs
- DbProviderFactories.cs
- CompositeScriptReference.cs
- SyndicationItem.cs
- CacheModeConverter.cs
- AsyncOperation.cs
- XPathNodeIterator.cs
- CallSiteOps.cs
- PropertyEmitter.cs
- OleDbException.cs
- DatatypeImplementation.cs
- CacheAxisQuery.cs
- MetadataItem_Static.cs
- EventWaitHandleSecurity.cs
- FixUp.cs
- ServiceMemoryGates.cs
- StackSpiller.Generated.cs
- LocalizableResourceBuilder.cs
- DictionarySectionHandler.cs
- EmptyCollection.cs
- ScriptingScriptResourceHandlerSection.cs
- Size.cs
- ListItem.cs
- DataGridrowEditEndingEventArgs.cs
- StylusDownEventArgs.cs
- Validator.cs
- XmlNodeWriter.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- ListViewHitTestInfo.cs
- PropertyGrid.cs
- IndependentAnimationStorage.cs
- WindowsFormsSynchronizationContext.cs
- FactoryGenerator.cs
- KeyPullup.cs
- SqlDependencyListener.cs
- FixedSOMImage.cs
- GeometryValueSerializer.cs
- DragDropManager.cs
- WmlTextViewAdapter.cs
- Hashtable.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- ManagementObject.cs
- TailPinnedEventArgs.cs
- XsltSettings.cs
- MenuRendererClassic.cs
- SubtreeProcessor.cs
- FloatMinMaxAggregationOperator.cs
- Formatter.cs
- NetMsmqSecurityElement.cs
- HostedImpersonationContext.cs
- SqlMultiplexer.cs