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
- CorrelationInitializer.cs
- elementinformation.cs
- Trace.cs
- XmlTextEncoder.cs
- BackgroundFormatInfo.cs
- BitStack.cs
- securitycriticaldataformultiplegetandset.cs
- ObjectSecurityT.cs
- SvcMapFile.cs
- IxmlLineInfo.cs
- CompilerResults.cs
- SettingsPropertyValueCollection.cs
- XmlTextReaderImplHelpers.cs
- DataGridViewCell.cs
- CollectionsUtil.cs
- DateTimeValueSerializerContext.cs
- TemplatePropertyEntry.cs
- FSWPathEditor.cs
- Menu.cs
- CustomErrorsSectionWrapper.cs
- DetailsViewDeleteEventArgs.cs
- ListItemParagraph.cs
- PointCollection.cs
- QilGeneratorEnv.cs
- DeclarativeCatalogPart.cs
- TypeBuilder.cs
- GridViewPageEventArgs.cs
- DocComment.cs
- RuntimeCompatibilityAttribute.cs
- UIElementCollection.cs
- MessageQueuePermission.cs
- ListDictionaryInternal.cs
- CombinedGeometry.cs
- SmiContext.cs
- TextParagraphProperties.cs
- Renderer.cs
- ipaddressinformationcollection.cs
- ActivationArguments.cs
- login.cs
- MultiView.cs
- PtsCache.cs
- WebPartTransformer.cs
- DateTime.cs
- MobileContainerDesigner.cs
- DataDocumentXPathNavigator.cs
- InheritablePropertyChangeInfo.cs
- EdmType.cs
- DataGridViewColumnDesigner.cs
- Visual3D.cs
- tabpagecollectioneditor.cs
- CellQuery.cs
- FlowPosition.cs
- Geometry.cs
- Pkcs7Signer.cs
- FormView.cs
- ReceiveErrorHandling.cs
- CompositeFontFamily.cs
- ToolboxSnapDragDropEventArgs.cs
- InkCanvasSelectionAdorner.cs
- Regex.cs
- HtmlLinkAdapter.cs
- StorageSetMapping.cs
- Rights.cs
- CodeMemberProperty.cs
- UriPrefixTable.cs
- Query.cs
- DiscoveryMessageProperty.cs
- DispatchOperation.cs
- UnescapedXmlDiagnosticData.cs
- ImpersonateTokenRef.cs
- SafeBitVector32.cs
- SQLGuidStorage.cs
- cookie.cs
- TextDpi.cs
- ClientType.cs
- AuthenticateEventArgs.cs
- CharacterBuffer.cs
- Types.cs
- BaseDataList.cs
- ByteBufferPool.cs
- OleStrCAMarshaler.cs
- System.Data.OracleClient_BID.cs
- Sorting.cs
- BaseDataBoundControl.cs
- BuildProvider.cs
- SelectionHighlightInfo.cs
- FileLoadException.cs
- DashStyle.cs
- MemberExpressionHelper.cs
- UpdateException.cs
- IdentityReference.cs
- DoubleAnimationUsingPath.cs
- XamlFigureLengthSerializer.cs
- ResourceExpressionBuilder.cs
- StrokeRenderer.cs
- Point3D.cs
- SubMenuStyleCollection.cs
- SqlIdentifier.cs
- SchemaElementLookUpTableEnumerator.cs
- FontEditor.cs