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
- Helpers.cs
- TcpTransportBindingElement.cs
- Dump.cs
- FontFamilyValueSerializer.cs
- EventLogWatcher.cs
- Token.cs
- ExpressionDumper.cs
- NavigatorInvalidBodyAccessException.cs
- MetadataItemSerializer.cs
- CallbackValidatorAttribute.cs
- PathSegment.cs
- LiteralControl.cs
- XmlLoader.cs
- RectAnimationUsingKeyFrames.cs
- HtmlHead.cs
- OutputCacheProviderCollection.cs
- HyperLinkColumn.cs
- ConfigurationStrings.cs
- ItemList.cs
- ConstraintConverter.cs
- SchemaReference.cs
- FormatVersion.cs
- FixedHighlight.cs
- SerializationSectionGroup.cs
- SafeUserTokenHandle.cs
- TreeNodeEventArgs.cs
- TextTreeText.cs
- SafeMILHandle.cs
- TrustSection.cs
- CodeMethodInvokeExpression.cs
- DbProviderManifest.cs
- TextSpanModifier.cs
- CodeGroup.cs
- LateBoundBitmapDecoder.cs
- figurelengthconverter.cs
- FontStyles.cs
- IRCollection.cs
- EntityDataSourceStatementEditorForm.cs
- ToggleProviderWrapper.cs
- precedingquery.cs
- PropVariant.cs
- TimeSpanValidator.cs
- SqlAggregateChecker.cs
- OdbcCommandBuilder.cs
- ApplicationServicesHostFactory.cs
- ImageKeyConverter.cs
- SmiEventSink_DeferedProcessing.cs
- AmbientProperties.cs
- CharacterHit.cs
- DbProviderManifest.cs
- ServiceMoniker.cs
- Rules.cs
- ScrollBarRenderer.cs
- Exception.cs
- AssemblyCache.cs
- OptimalTextSource.cs
- ConnectionInterfaceCollection.cs
- EventProviderBase.cs
- OdbcTransaction.cs
- DataServiceQuery.cs
- AbsoluteQuery.cs
- BrowserCapabilitiesFactory.cs
- FakeModelPropertyImpl.cs
- ParameterBuilder.cs
- CommandLibraryHelper.cs
- IdnMapping.cs
- Fault.cs
- Selector.cs
- BinaryFormatterSinks.cs
- NamespaceImport.cs
- SimpleTextLine.cs
- UnhandledExceptionEventArgs.cs
- ChangeNode.cs
- WinInetCache.cs
- TextChangedEventArgs.cs
- TextSimpleMarkerProperties.cs
- ellipse.cs
- LoginStatusDesigner.cs
- GeneralTransform2DTo3DTo2D.cs
- OdbcEnvironment.cs
- FloaterBaseParaClient.cs
- SqlDataRecord.cs
- HttpCookie.cs
- _ConnectionGroup.cs
- ValuePattern.cs
- ReferenceSchema.cs
- IEnumerable.cs
- ConfigurationValidatorBase.cs
- ClassHandlersStore.cs
- SessionPageStateSection.cs
- SystemDiagnosticsSection.cs
- UnsafeNativeMethods.cs
- ConfigurationStrings.cs
- UInt32Storage.cs
- Content.cs
- SequenceDesignerAccessibleObject.cs
- ExpanderAutomationPeer.cs
- Transactions.cs
- SystemInformation.cs
- SqlProviderUtilities.cs