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
- ResXResourceWriter.cs
- FormViewDeleteEventArgs.cs
- CellParagraph.cs
- ImageListStreamer.cs
- MetadataPropertyCollection.cs
- ScriptResourceHandler.cs
- KeyFrames.cs
- SQLGuidStorage.cs
- MimePart.cs
- OperationPickerDialog.cs
- CodeValidator.cs
- _LocalDataStore.cs
- FileChangesMonitor.cs
- SqlInternalConnection.cs
- ResourceDisplayNameAttribute.cs
- OrthographicCamera.cs
- Validator.cs
- EmissiveMaterial.cs
- MimeObjectFactory.cs
- ResourcePermissionBase.cs
- ValidatedMobileControlConverter.cs
- StructuredTypeInfo.cs
- Types.cs
- AdjustableArrowCap.cs
- RightsManagementInformation.cs
- WebDescriptionAttribute.cs
- ButtonBase.cs
- WindowsListViewItemCheckBox.cs
- WebControlsSection.cs
- MethodBuilder.cs
- SharedPersonalizationStateInfo.cs
- BinaryExpressionHelper.cs
- TreeNodeBinding.cs
- CannotUnloadAppDomainException.cs
- ControlIdConverter.cs
- RoutedEventHandlerInfo.cs
- FontNameConverter.cs
- CodeDirectionExpression.cs
- TheQuery.cs
- TdsParserStaticMethods.cs
- NgenServicingAttributes.cs
- BaseUriHelper.cs
- SmiRecordBuffer.cs
- FactoryId.cs
- KeyboardEventArgs.cs
- OdbcInfoMessageEvent.cs
- RequestTimeoutManager.cs
- WeakRefEnumerator.cs
- SymDocumentType.cs
- ProfileManager.cs
- UnknownWrapper.cs
- MarkerProperties.cs
- externdll.cs
- ProcessModelSection.cs
- Stroke.cs
- MessageFilterTable.cs
- HttpCapabilitiesBase.cs
- BinaryWriter.cs
- ChameleonKey.cs
- InitializationEventAttribute.cs
- GZipDecoder.cs
- GuidelineCollection.cs
- GPRECTF.cs
- Partitioner.cs
- RoleGroupCollection.cs
- BaseTemplateParser.cs
- SafeNativeMethods.cs
- OneOf.cs
- ControlCodeDomSerializer.cs
- WrapPanel.cs
- SpellCheck.cs
- ItemCheckedEvent.cs
- WebPartEventArgs.cs
- LicenseManager.cs
- SeekStoryboard.cs
- BulletedListEventArgs.cs
- MetadataSource.cs
- SetterBaseCollection.cs
- RadioButtonPopupAdapter.cs
- UpDownEvent.cs
- ReservationNotFoundException.cs
- XLinq.cs
- JpegBitmapEncoder.cs
- ResolveCriteriaCD1.cs
- Visual3DCollection.cs
- ExtensibleClassFactory.cs
- Constant.cs
- XmlDataFileEditor.cs
- AdPostCacheSubstitution.cs
- AlphaSortedEnumConverter.cs
- Walker.cs
- SingleAnimationUsingKeyFrames.cs
- ShapeTypeface.cs
- LazyTextWriterCreator.cs
- SQLRoleProvider.cs
- AttributeEmitter.cs
- TreeNodeStyleCollectionEditor.cs
- UIElementHelper.cs
- HtmlElementCollection.cs
- UserControlDocumentDesigner.cs