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
- HotCommands.cs
- MultiBinding.cs
- TextAdaptor.cs
- CodeGenerator.cs
- XmlWriterDelegator.cs
- OpCodes.cs
- FontDriver.cs
- CompilerInfo.cs
- UserControl.cs
- _ScatterGatherBuffers.cs
- SamlAdvice.cs
- DesignTimeParseData.cs
- MsmqProcessProtocolHandler.cs
- EntityViewContainer.cs
- ListControl.cs
- DataGridLinkButton.cs
- IPCCacheManager.cs
- SqlCommand.cs
- WebRequestModuleElement.cs
- CancelEventArgs.cs
- RelationshipManager.cs
- sapiproxy.cs
- Point4D.cs
- ExpressionConverter.cs
- HScrollBar.cs
- WebEventCodes.cs
- RepeatInfo.cs
- CodeBlockBuilder.cs
- ScriptingScriptResourceHandlerSection.cs
- WriteTimeStream.cs
- RoutedEventValueSerializer.cs
- VisualStateManager.cs
- DataSourceExpressionCollection.cs
- AssemblyBuilder.cs
- TrackingRecordPreFilter.cs
- RadioButton.cs
- IisTraceListener.cs
- BypassElement.cs
- ProcessModelSection.cs
- WebProxyScriptElement.cs
- JournalNavigationScope.cs
- ListItemCollection.cs
- SqlRowUpdatingEvent.cs
- FieldAccessException.cs
- ItemMap.cs
- FormViewPageEventArgs.cs
- OptimalTextSource.cs
- QilPatternVisitor.cs
- ScanQueryOperator.cs
- XmlEncoding.cs
- FunctionQuery.cs
- DbConnectionHelper.cs
- AbstractDataSvcMapFileLoader.cs
- PasswordDeriveBytes.cs
- sqlstateclientmanager.cs
- ItemMap.cs
- UInt32Converter.cs
- EnvelopedSignatureTransform.cs
- SqlClientWrapperSmiStream.cs
- CompiledScopeCriteria.cs
- WhitespaceRuleLookup.cs
- CombinedGeometry.cs
- XmlSchemaElement.cs
- ResourceAssociationSet.cs
- TypeReference.cs
- GradientBrush.cs
- EdmScalarPropertyAttribute.cs
- InstanceHandleReference.cs
- TypeLoadException.cs
- FontDialog.cs
- Debugger.cs
- ControlBindingsConverter.cs
- HostedHttpRequestAsyncResult.cs
- URL.cs
- Span.cs
- ServiceRouteHandler.cs
- PointLightBase.cs
- PassportAuthenticationEventArgs.cs
- SRef.cs
- ObjectNotFoundException.cs
- HtmlPhoneCallAdapter.cs
- PeerOutputChannel.cs
- RealizationContext.cs
- Roles.cs
- SchemaAttDef.cs
- ObsoleteAttribute.cs
- FixedDocument.cs
- BinaryQueryOperator.cs
- DataListCommandEventArgs.cs
- DragEventArgs.cs
- ItemsPanelTemplate.cs
- AuthenticationManager.cs
- ParseHttpDate.cs
- MarkupObject.cs
- ScrollableControl.cs
- HtmlElementEventArgs.cs
- NamedPermissionSet.cs
- ToolStripSettings.cs
- DeviceSpecificDesigner.cs
- ContentWrapperAttribute.cs