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
- DocumentViewerConstants.cs
- DropSource.cs
- BridgeDataReader.cs
- Activator.cs
- Certificate.cs
- ObfuscateAssemblyAttribute.cs
- TrackBarDesigner.cs
- SocketPermission.cs
- CqlParserHelpers.cs
- PageEventArgs.cs
- WebPart.cs
- DetailsViewInsertedEventArgs.cs
- Parser.cs
- SqlTopReducer.cs
- ResourceDescriptionAttribute.cs
- VariableDesigner.xaml.cs
- ConfigurationStrings.cs
- ChtmlImageAdapter.cs
- PermissionListSet.cs
- MainMenu.cs
- WorkflowViewService.cs
- VectorCollectionValueSerializer.cs
- TypefaceMetricsCache.cs
- ContainerSelectorActiveEvent.cs
- UserPersonalizationStateInfo.cs
- EventMappingSettings.cs
- basevalidator.cs
- _DynamicWinsockMethods.cs
- GridLengthConverter.cs
- MimeTypePropertyAttribute.cs
- InstrumentationTracker.cs
- SqlBuffer.cs
- UriPrefixTable.cs
- ButtonFieldBase.cs
- MarshalDirectiveException.cs
- HtmlTitle.cs
- DoubleLink.cs
- TryLoadRunnableWorkflowCommand.cs
- HttpWebRequestElement.cs
- TypeNameHelper.cs
- XamlStyleSerializer.cs
- Vars.cs
- VirtualPathUtility.cs
- CorrelationManager.cs
- InternalDuplexChannelFactory.cs
- VariableBinder.cs
- ButtonChrome.cs
- CharUnicodeInfo.cs
- SqlInternalConnection.cs
- OwnerDrawPropertyBag.cs
- RotationValidation.cs
- InstallerTypeAttribute.cs
- UniqueIdentifierService.cs
- SplashScreenNativeMethods.cs
- FixedDocumentSequencePaginator.cs
- PasswordBoxAutomationPeer.cs
- WebPartDescriptionCollection.cs
- TypeTypeConverter.cs
- WebServiceResponse.cs
- RubberbandSelector.cs
- VSDExceptions.cs
- TextContainerChangedEventArgs.cs
- Delegate.cs
- CommonDialog.cs
- Char.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- ToolTip.cs
- Attributes.cs
- PackageDigitalSignature.cs
- CultureInfoConverter.cs
- DataShape.cs
- StreamResourceInfo.cs
- XmlCustomFormatter.cs
- BitmapSizeOptions.cs
- PointConverter.cs
- MissingMemberException.cs
- DrawingGroupDrawingContext.cs
- BuiltInPermissionSets.cs
- HandlerBase.cs
- BamlLocalizableResourceKey.cs
- KeyConverter.cs
- SoapIncludeAttribute.cs
- PropertyChangedEventArgs.cs
- _ListenerRequestStream.cs
- ProfileManager.cs
- AssertSection.cs
- serverconfig.cs
- ComboBoxItem.cs
- dataobject.cs
- WebPartAddingEventArgs.cs
- QuaternionIndependentAnimationStorage.cs
- WmlImageAdapter.cs
- XmlWriterSettings.cs
- LoginDesigner.cs
- ToolStripPanelRow.cs
- Property.cs
- RegexNode.cs
- StructuredTypeEmitter.cs
- AsnEncodedData.cs
- XmlValidatingReaderImpl.cs