Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ImageAutomationPeer.cs
- TextEditorMouse.cs
- CodeDomLocalizationProvider.cs
- TypeGeneratedEventArgs.cs
- HScrollBar.cs
- Scripts.cs
- XmlDocumentSerializer.cs
- TextEffectResolver.cs
- DocumentSchemaValidator.cs
- TextDecorationCollectionConverter.cs
- TypeSchema.cs
- Pair.cs
- ObjectViewListener.cs
- ClientFormsAuthenticationMembershipProvider.cs
- ProfileSettings.cs
- __FastResourceComparer.cs
- ScopelessEnumAttribute.cs
- Int16.cs
- LoadGrammarCompletedEventArgs.cs
- LocatorBase.cs
- CodeGotoStatement.cs
- SqlCacheDependencyDatabaseCollection.cs
- SchemaNotation.cs
- PrefixQName.cs
- SQLGuid.cs
- DataContext.cs
- InstanceOwner.cs
- DataSourceXmlSerializer.cs
- MenuItemCollection.cs
- CompatibleIComparer.cs
- BindingListCollectionView.cs
- DecoderExceptionFallback.cs
- PasswordTextContainer.cs
- ObjectContext.cs
- TextEffectCollection.cs
- FormViewInsertedEventArgs.cs
- ProcessModule.cs
- XmlSchemaSimpleTypeList.cs
- RotateTransform3D.cs
- NativeCppClassAttribute.cs
- UrlPath.cs
- ZipIOLocalFileHeader.cs
- _SSPISessionCache.cs
- HandleCollector.cs
- VersionedStreamOwner.cs
- ProjectedSlot.cs
- ChtmlTextBoxAdapter.cs
- StrokeNodeData.cs
- XmlDictionaryReaderQuotas.cs
- RadioButton.cs
- QilPatternVisitor.cs
- Point.cs
- ValidatingReaderNodeData.cs
- BrowserCapabilitiesFactory.cs
- MessageQuerySet.cs
- Size.cs
- VarRemapper.cs
- CellPartitioner.cs
- TypeInitializationException.cs
- PtsHost.cs
- UnhandledExceptionEventArgs.cs
- xml.cs
- VirtualDirectoryMappingCollection.cs
- Message.cs
- HtmlControlPersistable.cs
- MissingFieldException.cs
- InternalTypeHelper.cs
- UserControl.cs
- _ContextAwareResult.cs
- ErrorFormatterPage.cs
- securestring.cs
- OdbcHandle.cs
- Transform3DGroup.cs
- ManifestResourceInfo.cs
- TransformGroup.cs
- DictionaryBase.cs
- Matrix.cs
- oledbmetadatacolumnnames.cs
- WebDescriptionAttribute.cs
- EventLogRecord.cs
- PointAnimation.cs
- PersonalizationProviderCollection.cs
- TreeViewDataItemAutomationPeer.cs
- RecordConverter.cs
- FormatException.cs
- PreProcessor.cs
- SoundPlayer.cs
- Token.cs
- HttpChannelHelper.cs
- DataGridAutoFormat.cs
- CodeAttributeArgument.cs
- QuotaThrottle.cs
- EditCommandColumn.cs
- Rect3DConverter.cs
- OutputBuffer.cs
- AutoGeneratedField.cs
- ADMembershipUser.cs
- SqlStream.cs
- DataGridViewAutoSizeModeEventArgs.cs
- BooleanFunctions.cs