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
- LeafCellTreeNode.cs
- StaticSiteMapProvider.cs
- ToolStripScrollButton.cs
- InputLanguageEventArgs.cs
- GridProviderWrapper.cs
- ProviderCommandInfoUtils.cs
- DesignerCategoryAttribute.cs
- FontInfo.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- AsyncCodeActivityContext.cs
- ControlUtil.cs
- CodeSpit.cs
- Image.cs
- PersonalizationAdministration.cs
- WindowsImpersonationContext.cs
- HostProtectionPermission.cs
- Vector3DIndependentAnimationStorage.cs
- WebConfigurationFileMap.cs
- Row.cs
- TypeExtensionSerializer.cs
- InvokeDelegate.cs
- HttpCachePolicyElement.cs
- RecognitionResult.cs
- InvalidEnumArgumentException.cs
- EnterpriseServicesHelper.cs
- VirtualPathUtility.cs
- FtpCachePolicyElement.cs
- TableParaClient.cs
- TargetFrameworkAttribute.cs
- MailAddress.cs
- FamilyMapCollection.cs
- Thumb.cs
- ModuleBuilderData.cs
- XsdCachingReader.cs
- PasswordTextContainer.cs
- ExpandableObjectConverter.cs
- ActionMessageFilterTable.cs
- ParallelForEach.cs
- DefaultDiscoveryServiceExtension.cs
- ClientBuildManagerCallback.cs
- RowUpdatingEventArgs.cs
- DataSourceProvider.cs
- SiteMapNode.cs
- ErrorTableItemStyle.cs
- WpfWebRequestHelper.cs
- IUnknownConstantAttribute.cs
- SerializationHelper.cs
- Math.cs
- HttpCacheVary.cs
- TrackingDataItem.cs
- Exceptions.cs
- PreservationFileWriter.cs
- WorkflowLayouts.cs
- Configuration.cs
- DefaultTraceListener.cs
- EUCJPEncoding.cs
- X509ChainPolicy.cs
- Exception.cs
- XPathNodePointer.cs
- SelectionItemProviderWrapper.cs
- HandleCollector.cs
- DelegateBodyWriter.cs
- ResXFileRef.cs
- Update.cs
- NopReturnReader.cs
- TimeoutHelper.cs
- GridItemProviderWrapper.cs
- UnsafeNativeMethods.cs
- DeclarationUpdate.cs
- RawAppCommandInputReport.cs
- HttpApplication.cs
- ECDiffieHellmanCng.cs
- NativeMethods.cs
- QueryConverter.cs
- ListViewInsertEventArgs.cs
- RemoteHelper.cs
- Literal.cs
- QualifiedCellIdBoolean.cs
- ToolStripEditorManager.cs
- CqlLexer.cs
- XmlSubtreeReader.cs
- StateDesigner.LayoutSelectionGlyph.cs
- AlignmentYValidation.cs
- LogWriteRestartAreaAsyncResult.cs
- SafeMemoryMappedFileHandle.cs
- BinaryFormatterWriter.cs
- XmlNodeList.cs
- AsyncPostBackErrorEventArgs.cs
- Completion.cs
- AddInBase.cs
- AdRotator.cs
- SerialErrors.cs
- IPEndPointCollection.cs
- MissingMethodException.cs
- datacache.cs
- DataGridViewCellConverter.cs
- WindowsPrincipal.cs
- SeekStoryboard.cs
- WindowsPrincipal.cs
- TemplateColumn.cs