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
- DataBoundControl.cs
- WindowsGraphicsCacheManager.cs
- xamlnodes.cs
- ReadOnlyObservableCollection.cs
- PolyBezierSegmentFigureLogic.cs
- _WebProxyDataBuilder.cs
- EntityParameterCollection.cs
- SqlFactory.cs
- CompositionCommandSet.cs
- PropertyDescriptorComparer.cs
- StaticSiteMapProvider.cs
- XmlSchemaSimpleContentRestriction.cs
- XamlRtfConverter.cs
- SignatureToken.cs
- MasterPageParser.cs
- WorkItem.cs
- ToolStripGripRenderEventArgs.cs
- ItemCheckedEvent.cs
- ContentFilePart.cs
- _ContextAwareResult.cs
- FtpWebRequest.cs
- HandlerBase.cs
- EventListenerClientSide.cs
- UnionCodeGroup.cs
- SoapAttributeAttribute.cs
- RulePatternOps.cs
- QueryCursorEventArgs.cs
- VisualStyleTypesAndProperties.cs
- TraceSource.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ValidatorUtils.cs
- TextDecorationLocationValidation.cs
- CompoundFileIOPermission.cs
- OracleRowUpdatingEventArgs.cs
- CommandField.cs
- ServiceNameElement.cs
- DeadCharTextComposition.cs
- ToolStripDropDownMenu.cs
- LabelDesigner.cs
- EncryptedXml.cs
- CaretElement.cs
- SerializableAttribute.cs
- TextElementCollection.cs
- RoutedEventHandlerInfo.cs
- ThicknessAnimation.cs
- MailHeaderInfo.cs
- WindowPattern.cs
- NameValueSectionHandler.cs
- DataGridViewRowCollection.cs
- SpinWait.cs
- OperationInvokerBehavior.cs
- GeneralTransform3DCollection.cs
- BrushMappingModeValidation.cs
- FixedFlowMap.cs
- clipboard.cs
- WeakHashtable.cs
- OperationAbortedException.cs
- XmlMapping.cs
- WindowsRegion.cs
- ConnectionInterfaceCollection.cs
- AdjustableArrowCap.cs
- ListViewDataItem.cs
- DebuggerAttributes.cs
- PrintControllerWithStatusDialog.cs
- BadImageFormatException.cs
- LinkGrep.cs
- XComponentModel.cs
- _NestedMultipleAsyncResult.cs
- MdiWindowListStrip.cs
- ConfigurationStrings.cs
- AdornedElementPlaceholder.cs
- WebErrorHandler.cs
- CalloutQueueItem.cs
- HttpWebResponse.cs
- LineVisual.cs
- CommandBinding.cs
- CollectionViewGroupRoot.cs
- KeyGestureConverter.cs
- WebBrowser.cs
- DataKeyCollection.cs
- TableLayoutPanel.cs
- FixedSOMLineRanges.cs
- DataRelationCollection.cs
- TransformerConfigurationWizardBase.cs
- WebProxyScriptElement.cs
- EventProvider.cs
- WaitHandleCannotBeOpenedException.cs
- RoutedEventHandlerInfo.cs
- MdiWindowListItemConverter.cs
- WebEventCodes.cs
- SqlServer2KCompatibilityAnnotation.cs
- Random.cs
- ApplicationBuildProvider.cs
- ObjectTag.cs
- ContainerControl.cs
- PointAnimationUsingPath.cs
- SimpleBitVector32.cs
- DocumentSequenceHighlightLayer.cs
- Renderer.cs
- LambdaCompiler.Generated.cs