Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- pingexception.cs
- Application.cs
- ImmutableObjectAttribute.cs
- EmbeddedMailObject.cs
- NullableLongSumAggregationOperator.cs
- UnicastIPAddressInformationCollection.cs
- AudienceUriMode.cs
- WorkflowTransactionOptions.cs
- ProfileServiceManager.cs
- HostingEnvironmentSection.cs
- SQLBinary.cs
- WebPartConnectionsConnectVerb.cs
- CmsInterop.cs
- MessageQueuePermissionEntryCollection.cs
- CapabilitiesRule.cs
- IisTraceWebEventProvider.cs
- EditingCoordinator.cs
- TemplatedMailWebEventProvider.cs
- ListenerUnsafeNativeMethods.cs
- QilLiteral.cs
- WaveHeader.cs
- ReflectTypeDescriptionProvider.cs
- HtmlGenericControl.cs
- GiveFeedbackEventArgs.cs
- ArcSegment.cs
- GridItem.cs
- ClientCultureInfo.cs
- MouseGestureValueSerializer.cs
- Light.cs
- ParentQuery.cs
- GenericWebPart.cs
- XmlSchemaCompilationSettings.cs
- StylusTouchDevice.cs
- ProviderCollection.cs
- AppSettingsReader.cs
- OleAutBinder.cs
- PropertyGridEditorPart.cs
- WorkItem.cs
- DashStyle.cs
- LexicalChunk.cs
- PageContentCollection.cs
- ResourceReader.cs
- KoreanCalendar.cs
- DataReceivedEventArgs.cs
- ForeignKeyConstraint.cs
- XmlNodeChangedEventArgs.cs
- PermissionSetTriple.cs
- Helper.cs
- StringStorage.cs
- AxHost.cs
- NavigatorOutput.cs
- SafeSystemMetrics.cs
- RegexMatch.cs
- JapaneseCalendar.cs
- DBSqlParserTable.cs
- DiagnosticTraceSource.cs
- XhtmlBasicSelectionListAdapter.cs
- DbParameterCollectionHelper.cs
- CompositeDataBoundControl.cs
- VirtualPathProvider.cs
- InputEventArgs.cs
- SubMenuStyleCollection.cs
- DetailsViewCommandEventArgs.cs
- InitializerFacet.cs
- HttpRawResponse.cs
- ListViewUpdatedEventArgs.cs
- InputEventArgs.cs
- TreePrinter.cs
- PlatformCulture.cs
- RequestChannel.cs
- ControlValuePropertyAttribute.cs
- StylusEditingBehavior.cs
- MediaPlayerState.cs
- CharUnicodeInfo.cs
- Pens.cs
- HttpResponseHeader.cs
- ClassicBorderDecorator.cs
- _ListenerResponseStream.cs
- DefaultProfileManager.cs
- ScrollChrome.cs
- Highlights.cs
- ObjectStateEntry.cs
- SortedDictionary.cs
- SqlNodeAnnotation.cs
- MembershipValidatePasswordEventArgs.cs
- ControlEvent.cs
- DataGridTableCollection.cs
- ListDictionaryInternal.cs
- GcHandle.cs
- DocumentOrderComparer.cs
- ClientSettings.cs
- ExpandCollapsePatternIdentifiers.cs
- Vector3DCollectionConverter.cs
- DPAPIProtectedConfigurationProvider.cs
- EncoderParameter.cs
- XamlSerializerUtil.cs
- ScriptControl.cs
- BitmapEffectGroup.cs
- SrgsItemList.cs
- ManagementInstaller.cs