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
- precedingsibling.cs
- WebSysDescriptionAttribute.cs
- HyperLink.cs
- SqlConnectionHelper.cs
- CustomCredentialPolicy.cs
- PolyQuadraticBezierSegment.cs
- WebSysDescriptionAttribute.cs
- MeasureData.cs
- TemplatedWizardStep.cs
- XPathBinder.cs
- TrustManagerMoreInformation.cs
- UdpAnnouncementEndpoint.cs
- TextChangedEventArgs.cs
- SRDisplayNameAttribute.cs
- RawStylusInputReport.cs
- ServiceObjectContainer.cs
- MappedMetaModel.cs
- EventEntry.cs
- _HelperAsyncResults.cs
- TraceSection.cs
- Mutex.cs
- DataKey.cs
- ScrollChangedEventArgs.cs
- DeclaredTypeValidator.cs
- ProxyElement.cs
- AdornedElementPlaceholder.cs
- DayRenderEvent.cs
- Pointer.cs
- WebPartConnectionsConnectVerb.cs
- ConfigXmlSignificantWhitespace.cs
- GeometryGroup.cs
- ObjectItemAttributeAssemblyLoader.cs
- ToolStripItemImageRenderEventArgs.cs
- MeasureData.cs
- CryptographicAttribute.cs
- ButtonChrome.cs
- SwitchElementsCollection.cs
- RepeatBehaviorConverter.cs
- CannotUnloadAppDomainException.cs
- BuiltInExpr.cs
- RSAPKCS1SignatureDeformatter.cs
- _ListenerAsyncResult.cs
- DataGridLength.cs
- InputMethodStateTypeInfo.cs
- RemotingConfigParser.cs
- PrintDialog.cs
- Config.cs
- IndentTextWriter.cs
- ListViewInsertEventArgs.cs
- RuleRefElement.cs
- DurableRuntimeValidator.cs
- RawTextInputReport.cs
- ValidationEventArgs.cs
- GridViewHeaderRowPresenter.cs
- DirectoryInfo.cs
- MachineKeyConverter.cs
- CngKeyCreationParameters.cs
- InheritanceContextChangedEventManager.cs
- NamespaceTable.cs
- FeatureSupport.cs
- TransformerConfigurationWizardBase.cs
- PagePropertiesChangingEventArgs.cs
- SHA512Managed.cs
- DotExpr.cs
- safesecurityhelperavalon.cs
- StringBuilder.cs
- RectAnimation.cs
- ContentIterators.cs
- TiffBitmapDecoder.cs
- DataObjectMethodAttribute.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- SequenceFullException.cs
- SQLInt16Storage.cs
- WaveHeader.cs
- XmlILModule.cs
- LabelEditEvent.cs
- XmlWrappingWriter.cs
- InputScope.cs
- TimeIntervalCollection.cs
- ContainerAction.cs
- TypeUtil.cs
- MetadataUtilsSmi.cs
- ISFClipboardData.cs
- WebPartZoneCollection.cs
- ISFClipboardData.cs
- ViewBox.cs
- SqlDataSourceSelectingEventArgs.cs
- keycontainerpermission.cs
- Matrix3DConverter.cs
- OleDbException.cs
- Assembly.cs
- AppSettingsExpressionBuilder.cs
- DelegatingTypeDescriptionProvider.cs
- CollectionDataContract.cs
- GPPOINT.cs
- LinkUtilities.cs
- ImportContext.cs
- WindowsSlider.cs
- AnnotationHelper.cs
- EditorZoneBase.cs