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
- ModelItemCollection.cs
- X509UI.cs
- UrlUtility.cs
- ImageAutomationPeer.cs
- XPathItem.cs
- BindingSource.cs
- XmlSerializationGeneratedCode.cs
- ProfileManager.cs
- ExpressionEditorAttribute.cs
- Hex.cs
- ActiveXContainer.cs
- FieldNameLookup.cs
- basecomparevalidator.cs
- ListView.cs
- DocumentPaginator.cs
- Pen.cs
- IntranetCredentialPolicy.cs
- EntryPointNotFoundException.cs
- ChunkedMemoryStream.cs
- SplineQuaternionKeyFrame.cs
- Button.cs
- AtlasWeb.Designer.cs
- FormsAuthentication.cs
- StringArrayConverter.cs
- AppearanceEditorPart.cs
- Table.cs
- PartitionerQueryOperator.cs
- TreeViewDesigner.cs
- PtsContext.cs
- ListViewGroupConverter.cs
- ScriptingSectionGroup.cs
- RichTextBoxContextMenu.cs
- PageSetupDialog.cs
- DataGridColumnHeaderCollection.cs
- CodeTypeDelegate.cs
- OperandQuery.cs
- XmlCompatibilityReader.cs
- DocumentAutomationPeer.cs
- PeerNameRecord.cs
- Odbc32.cs
- SQLGuid.cs
- SchemaImporter.cs
- XmlSchemaProviderAttribute.cs
- ImpersonateTokenRef.cs
- ScopeCollection.cs
- _OverlappedAsyncResult.cs
- CompositeDataBoundControl.cs
- WebProxyScriptElement.cs
- TraceSource.cs
- TaskFileService.cs
- InkPresenter.cs
- TypeUtils.cs
- ToolStripSplitStackLayout.cs
- XsltLoader.cs
- FactoryGenerator.cs
- GeneratedContractType.cs
- XslAst.cs
- UIElement3D.cs
- UserNamePasswordServiceCredential.cs
- WindowsServiceElement.cs
- LazyTextWriterCreator.cs
- KeyedCollection.cs
- XamlDesignerSerializationManager.cs
- Int32.cs
- BoolExpressionVisitors.cs
- Win32.cs
- StorageComplexPropertyMapping.cs
- FontSource.cs
- XsltSettings.cs
- XslNumber.cs
- ValueConversionAttribute.cs
- SmtpTransport.cs
- DbBuffer.cs
- SharedPersonalizationStateInfo.cs
- EntityDataSourceStatementEditor.cs
- WebEventTraceProvider.cs
- UnsafeNativeMethods.cs
- EntityDataSourceDesigner.cs
- Timeline.cs
- SessionParameter.cs
- WrappingXamlSchemaContext.cs
- WinFormsComponentEditor.cs
- ContextStaticAttribute.cs
- HitTestResult.cs
- SqlClientWrapperSmiStream.cs
- MailMessage.cs
- cryptoapiTransform.cs
- EnglishPluralizationService.cs
- EventLogConfiguration.cs
- UndoManager.cs
- LayoutEditorPart.cs
- Panel.cs
- TreeNodeStyle.cs
- DataServiceQuery.cs
- EncryptedPackage.cs
- FillRuleValidation.cs
- PropertyHelper.cs
- ImageCreator.cs
- EventItfInfo.cs
- OrderedDictionaryStateHelper.cs