Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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;
}
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EventDescriptor.cs
- OutputWindow.cs
- ActivityWithResultConverter.cs
- WorkflowLayouts.cs
- Size3DConverter.cs
- GestureRecognitionResult.cs
- HtmlHistory.cs
- GregorianCalendar.cs
- DesignerTransaction.cs
- EventTrigger.cs
- ScriptControlDescriptor.cs
- SignatureDescription.cs
- RadioButtonRenderer.cs
- WizardSideBarListControlItemEventArgs.cs
- JsonReader.cs
- Matrix.cs
- Executor.cs
- SimpleFileLog.cs
- PackageRelationshipCollection.cs
- SystemWebSectionGroup.cs
- SymDocumentType.cs
- DragDrop.cs
- SqlException.cs
- XmlSchemaSubstitutionGroup.cs
- Internal.cs
- DSASignatureDeformatter.cs
- AnnotationHighlightLayer.cs
- XpsFilter.cs
- CreateRefExpr.cs
- SecurityTokenException.cs
- PrintPreviewDialog.cs
- CodeArgumentReferenceExpression.cs
- LineBreakRecord.cs
- FileDialog_Vista.cs
- IsolatedStorage.cs
- __ConsoleStream.cs
- ActivitySurrogateSelector.cs
- TypedElement.cs
- ADConnectionHelper.cs
- SessionIDManager.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- SchemaImporter.cs
- RegexFCD.cs
- GACIdentityPermission.cs
- SerialStream.cs
- DrawingVisual.cs
- PerformanceCounterPermission.cs
- CheckBoxAutomationPeer.cs
- DataErrorValidationRule.cs
- ValidationRule.cs
- SchemaMerger.cs
- EventLogInternal.cs
- RequestCache.cs
- LineUtil.cs
- DataGridColumnCollection.cs
- Hashtable.cs
- MenuScrollingVisibilityConverter.cs
- Geometry3D.cs
- PtsContext.cs
- NamespaceInfo.cs
- StdValidatorsAndConverters.cs
- TextBoxRenderer.cs
- RegularExpressionValidator.cs
- HttpHandlersInstallComponent.cs
- BindableTemplateBuilder.cs
- BitHelper.cs
- EmbeddedObject.cs
- DataGridColumnHeader.cs
- COM2EnumConverter.cs
- ErrorHandler.cs
- WebPartChrome.cs
- ProxyAttribute.cs
- SqlClientWrapperSmiStream.cs
- SplashScreen.cs
- FixedTextView.cs
- NumberFunctions.cs
- ListItem.cs
- WorkflowApplicationUnhandledExceptionEventArgs.cs
- CharUnicodeInfo.cs
- GridViewPageEventArgs.cs
- ToolStripOverflow.cs
- View.cs
- AssociatedControlConverter.cs
- AggregationMinMaxHelpers.cs
- ReadOnlyDataSourceView.cs
- FixedFlowMap.cs
- DataSourceGroupCollection.cs
- SqlDataAdapter.cs
- Utils.cs
- ItemCollection.cs
- LayoutManager.cs
- CFGGrammar.cs
- HttpHandlersSection.cs
- Html32TextWriter.cs
- AttachInfo.cs
- WebPartTransformerCollection.cs
- StreamFormatter.cs
- AsymmetricSignatureFormatter.cs
- SafeCryptContextHandle.cs
- PageBreakRecord.cs