Code:
/ DotNET / DotNET / 8.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
- IIS7WorkerRequest.cs
- TransactionTraceIdentifier.cs
- ConfigurationStrings.cs
- LinearKeyFrames.cs
- PropertyToken.cs
- SiteMapNodeItem.cs
- SearchForVirtualItemEventArgs.cs
- DataBinding.cs
- CodeTypeDelegate.cs
- PackUriHelper.cs
- ReverseComparer.cs
- SoapInteropTypes.cs
- AssertSection.cs
- SchemaInfo.cs
- SqlNotificationEventArgs.cs
- Util.cs
- MsmqIntegrationChannelFactory.cs
- RuntimeWrappedException.cs
- ScaleTransform3D.cs
- TextFormatter.cs
- XmlSchemaExporter.cs
- ReceiveMessageAndVerifySecurityAsyncResultBase.cs
- ListenerSingletonConnectionReader.cs
- GenericEnumerator.cs
- SecureUICommand.cs
- ContentFilePart.cs
- DefaultWorkflowTransactionService.cs
- Preprocessor.cs
- StringBlob.cs
- ConfigurationPropertyAttribute.cs
- documentation.cs
- CodeDelegateCreateExpression.cs
- xdrvalidator.cs
- ToolStripStatusLabel.cs
- Ppl.cs
- FileEnumerator.cs
- ButtonStandardAdapter.cs
- Comparer.cs
- ImageClickEventArgs.cs
- CompositeControl.cs
- TagPrefixAttribute.cs
- BitmapImage.cs
- XmlCDATASection.cs
- IsolatedStorageFile.cs
- VisualBrush.cs
- NameGenerator.cs
- TypographyProperties.cs
- SQLCharsStorage.cs
- RpcAsyncResult.cs
- ServiceProviders.cs
- TextMarkerSource.cs
- JsonFormatMapping.cs
- WebColorConverter.cs
- Condition.cs
- MsmqIntegrationMessagePool.cs
- TransactionManager.cs
- FieldNameLookup.cs
- Enum.cs
- MsmqIntegrationSecurityMode.cs
- GenericPrincipal.cs
- InsufficientMemoryException.cs
- listitem.cs
- NullReferenceException.cs
- TreeNode.cs
- SelectorItemAutomationPeer.cs
- DocumentOrderQuery.cs
- FastPropertyAccessor.cs
- PolicyUnit.cs
- DbProviderConfigurationHandler.cs
- DataSpaceManager.cs
- ReflectTypeDescriptionProvider.cs
- FormClosingEvent.cs
- Italic.cs
- XPathNodeInfoAtom.cs
- JulianCalendar.cs
- CodeNamespaceImport.cs
- SystemUnicastIPAddressInformation.cs
- StrokeCollectionConverter.cs
- BitmapImage.cs
- ContractAdapter.cs
- FileChangesMonitor.cs
- StrokeNodeData.cs
- DateBoldEvent.cs
- XmlSchemaCompilationSettings.cs
- WorkflowOwnershipException.cs
- DesignerTransactionCloseEvent.cs
- ListView.cs
- IImplicitResourceProvider.cs
- NotifyParentPropertyAttribute.cs
- XmlSchemaAttribute.cs
- ImageSourceConverter.cs
- SqlDataReader.cs
- SecurityTokenReferenceStyle.cs
- ColorAnimation.cs
- GeneralTransform3D.cs
- ErrorHandler.cs
- filewebresponse.cs
- XmlNullResolver.cs
- TextTreeInsertUndoUnit.cs
- RefreshPropertiesAttribute.cs