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
- BroadcastEventHelper.cs
- GridSplitterAutomationPeer.cs
- WorkflowServiceHostFactory.cs
- TextParaClient.cs
- XamlSerializerUtil.cs
- BoundField.cs
- Registry.cs
- Queue.cs
- controlskin.cs
- WindowsServiceElement.cs
- LinqDataSource.cs
- ParameterElementCollection.cs
- OracleInfoMessageEventArgs.cs
- TextEmbeddedObject.cs
- CompilationRelaxations.cs
- TypefaceMap.cs
- FullTextState.cs
- KerberosSecurityTokenProvider.cs
- FillRuleValidation.cs
- HostVisual.cs
- TraceContextRecord.cs
- RenderOptions.cs
- TableFieldsEditor.cs
- Bitmap.cs
- Form.cs
- DockPattern.cs
- NetworkInformationException.cs
- Evidence.cs
- CheckBoxList.cs
- OracleParameterBinding.cs
- ImmutablePropertyDescriptorGridEntry.cs
- ObjectQueryProvider.cs
- StorageTypeMapping.cs
- MultiSelectRootGridEntry.cs
- TypeExtensions.cs
- ObjectDataSourceStatusEventArgs.cs
- BrowserTree.cs
- BatchParser.cs
- FontUnitConverter.cs
- TypeConverterAttribute.cs
- AssociationType.cs
- WebPageTraceListener.cs
- HwndTarget.cs
- AccessorTable.cs
- URLString.cs
- Vector3DCollectionConverter.cs
- XmlBinaryReader.cs
- OdbcFactory.cs
- TimeZoneNotFoundException.cs
- RequestResizeEvent.cs
- RegexCompilationInfo.cs
- CorePropertiesFilter.cs
- HttpAsyncResult.cs
- DriveInfo.cs
- OdbcError.cs
- GatewayDefinition.cs
- ListArgumentProvider.cs
- LinearQuaternionKeyFrame.cs
- UserPreferenceChangingEventArgs.cs
- TransformerInfoCollection.cs
- ServiceBusyException.cs
- DbProviderConfigurationHandler.cs
- StdValidatorsAndConverters.cs
- Util.cs
- SqlTransaction.cs
- UnsafeNativeMethods.cs
- _AcceptOverlappedAsyncResult.cs
- IndicCharClassifier.cs
- DesignerTransactionCloseEvent.cs
- DoubleIndependentAnimationStorage.cs
- BindingManagerDataErrorEventArgs.cs
- CustomValidator.cs
- Header.cs
- StoreItemCollection.Loader.cs
- Triplet.cs
- SqlDataSourceEnumerator.cs
- DataGridRowDetailsEventArgs.cs
- ReadOnlyHierarchicalDataSource.cs
- VideoDrawing.cs
- NeutralResourcesLanguageAttribute.cs
- WebSysDescriptionAttribute.cs
- MenuCommand.cs
- EditorPartChrome.cs
- Interlocked.cs
- DefaultProxySection.cs
- ThreadStartException.cs
- Vector.cs
- SecurityPermission.cs
- RoutedCommand.cs
- HScrollProperties.cs
- ExpressionVisitor.cs
- DoubleStorage.cs
- MenuItemBinding.cs
- BindingValueChangedEventArgs.cs
- TreeNodeSelectionProcessor.cs
- TypeExtension.cs
- LiteralSubsegment.cs
- _ProxyRegBlob.cs
- TagPrefixInfo.cs
- PrivacyNoticeBindingElementImporter.cs