Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- MediaElementAutomationPeer.cs
- KerberosSecurityTokenProvider.cs
- FormatVersion.cs
- CompilationSection.cs
- Win32Exception.cs
- DefaultEvaluationContext.cs
- WebReferencesBuildProvider.cs
- AutomationPatternInfo.cs
- LocalsItemDescription.cs
- Underline.cs
- CacheForPrimitiveTypes.cs
- ResourcePool.cs
- AuthenticationModeHelper.cs
- AppDomainFactory.cs
- XmlEntityReference.cs
- ToolStripContainer.cs
- ExceptionWrapper.cs
- OutputCacheSection.cs
- HtmlLiteralTextAdapter.cs
- SmtpDigestAuthenticationModule.cs
- IisTraceWebEventProvider.cs
- TextRangeAdaptor.cs
- ToolStripPanelCell.cs
- LogicalExpr.cs
- JsonSerializer.cs
- StatusBarPanel.cs
- DoWorkEventArgs.cs
- HtmlElement.cs
- HTMLTagNameToTypeMapper.cs
- documentsequencetextcontainer.cs
- ContentPropertyAttribute.cs
- ContentAlignmentEditor.cs
- HttpsChannelListener.cs
- SkinBuilder.cs
- EntityTypeBase.cs
- RegexMatchCollection.cs
- GlyphRun.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- XmlSchemaElement.cs
- ArgumentException.cs
- HttpWebRequestElement.cs
- BinaryObjectReader.cs
- OutputScopeManager.cs
- ColorConvertedBitmap.cs
- OperationResponse.cs
- SliderAutomationPeer.cs
- EditorPartCollection.cs
- ProtocolInformationReader.cs
- IEnumerable.cs
- ElementNotEnabledException.cs
- SchemaMerger.cs
- XPathQilFactory.cs
- Matrix3DConverter.cs
- RoleManagerSection.cs
- DockingAttribute.cs
- ConnectionConsumerAttribute.cs
- AttributeProviderAttribute.cs
- SignatureHelper.cs
- MachineKeyValidationConverter.cs
- SchemaNamespaceManager.cs
- AssemblyCache.cs
- addressfiltermode.cs
- TextSelection.cs
- Int64AnimationUsingKeyFrames.cs
- ColorIndependentAnimationStorage.cs
- TreeView.cs
- OutputCacheProfile.cs
- XDeferredAxisSource.cs
- SettingsAttributes.cs
- OrderByBuilder.cs
- _NegoState.cs
- ClientSettings.cs
- ConfigXmlReader.cs
- DockPanel.cs
- SchemaCollectionCompiler.cs
- PrintingPermission.cs
- UpdateCommand.cs
- ToolStripDesignerAvailabilityAttribute.cs
- ConfigPathUtility.cs
- ErrorHandler.cs
- SHA512Managed.cs
- Win32PrintDialog.cs
- SeekStoryboard.cs
- SspiHelper.cs
- PointCollectionConverter.cs
- CommonDialog.cs
- CopyEncoder.cs
- WeakReferenceEnumerator.cs
- AttachmentCollection.cs
- SpanIndex.cs
- XPathMessageFilterTable.cs
- StyleCollectionEditor.cs
- GlobalItem.cs
- sapiproxy.cs
- FileLogRecordEnumerator.cs
- PropertyEmitterBase.cs
- RijndaelManagedTransform.cs
- DataListItemEventArgs.cs
- SafeEventLogReadHandle.cs
- ResourceKey.cs