Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Monitoring / system / Diagnosticts / EventSourceCreationData.cs / 1305376 / 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
- VarInfo.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ComplexTypeEmitter.cs
- Row.cs
- XLinq.cs
- DefaultValueAttribute.cs
- GlyphTypeface.cs
- BitmapEffect.cs
- Application.cs
- ScriptResourceHandler.cs
- IteratorDescriptor.cs
- Grid.cs
- DesignerSerializationVisibilityAttribute.cs
- EditBehavior.cs
- XmlTextEncoder.cs
- WebPartPersonalization.cs
- Evidence.cs
- UTF8Encoding.cs
- ChannelHandler.cs
- PointKeyFrameCollection.cs
- QilInvokeLateBound.cs
- ServiceDurableInstance.cs
- DbReferenceCollection.cs
- MultiSelectRootGridEntry.cs
- HtmlWindowCollection.cs
- XPathDocumentIterator.cs
- TriggerBase.cs
- SByteConverter.cs
- TextTreeInsertUndoUnit.cs
- WarningException.cs
- SortDescription.cs
- RadioButtonFlatAdapter.cs
- NegationPusher.cs
- UniqueEventHelper.cs
- DataGridViewCheckBoxCell.cs
- DayRenderEvent.cs
- XmlSiteMapProvider.cs
- SqlClientWrapperSmiStreamChars.cs
- dataobject.cs
- GetBrowserTokenRequest.cs
- dtdvalidator.cs
- SqlDataSourceEnumerator.cs
- LinqDataSourceView.cs
- ActivityDesignerHighlighter.cs
- panel.cs
- QueryExpr.cs
- XmlRootAttribute.cs
- PointConverter.cs
- GridViewCancelEditEventArgs.cs
- KeyTime.cs
- SecurityHeaderTokenResolver.cs
- PathSegmentCollection.cs
- SerializationInfoEnumerator.cs
- LocationReferenceValue.cs
- XmlArrayAttribute.cs
- ItemCheckEvent.cs
- SeekableReadStream.cs
- TraceUtility.cs
- TCPClient.cs
- DataListItemEventArgs.cs
- DeleteWorkflowOwnerCommand.cs
- AdapterUtil.cs
- ConnectionConsumerAttribute.cs
- LostFocusEventManager.cs
- XmlSchemaGroup.cs
- ResourceProviderFactory.cs
- WebBaseEventKeyComparer.cs
- DBPropSet.cs
- PreviewPageInfo.cs
- VarRefManager.cs
- WebPartTransformerAttribute.cs
- ObjectList.cs
- AmbientProperties.cs
- ConcurrencyMode.cs
- ServicePoint.cs
- PersonalizationAdministration.cs
- NativeObjectSecurity.cs
- ApplicationTrust.cs
- IntellisenseTextBox.designer.cs
- WinEventHandler.cs
- AutoCompleteStringCollection.cs
- LightweightEntityWrapper.cs
- HttpApplication.cs
- MetadataExporter.cs
- TagPrefixAttribute.cs
- ToolStripDropDownClosedEventArgs.cs
- webbrowsersite.cs
- HttpVersion.cs
- DetailsViewRow.cs
- EditableTreeList.cs
- CompleteWizardStep.cs
- DBSqlParserColumn.cs
- MailDefinition.cs
- ScrollItemProviderWrapper.cs
- DataGridViewRowEventArgs.cs
- Configuration.cs
- ProgressBarHighlightConverter.cs
- CodeTypeConstructor.cs
- HttpWrapper.cs
- DmlSqlGenerator.cs