Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Monitoring / system / Diagnosticts / EventSourceCreationData.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Track.cs
- SrgsRule.cs
- HwndHostAutomationPeer.cs
- TextAction.cs
- SelectingProviderEventArgs.cs
- SafeNativeMethods.cs
- DataSourceGeneratorException.cs
- DbgCompiler.cs
- NameValueFileSectionHandler.cs
- TraceUtils.cs
- IIS7WorkerRequest.cs
- RoleGroup.cs
- EnvironmentPermission.cs
- ResourceAssociationType.cs
- ReversePositionQuery.cs
- TabControlEvent.cs
- PerformanceCountersElement.cs
- TreeNodeBinding.cs
- UInt16Converter.cs
- WhiteSpaceTrimStringConverter.cs
- UpDownEvent.cs
- DataServiceException.cs
- SiteMapNodeItem.cs
- InvokeGenerator.cs
- XmlName.cs
- OLEDB_Enum.cs
- RenderTargetBitmap.cs
- NumberAction.cs
- ManagementExtension.cs
- CompositeKey.cs
- PartitionResolver.cs
- EditingCommands.cs
- ChannelManagerHelpers.cs
- HierarchicalDataTemplate.cs
- AesManaged.cs
- ByteConverter.cs
- DesignerAutoFormatStyle.cs
- CodeBlockBuilder.cs
- Bits.cs
- InvalidCommandTreeException.cs
- XmlSerializerNamespaces.cs
- Nodes.cs
- Drawing.cs
- FixedTextView.cs
- SafeLibraryHandle.cs
- WebContext.cs
- InputScope.cs
- LineVisual.cs
- HuffCodec.cs
- InvalidOleVariantTypeException.cs
- FileDialogCustomPlacesCollection.cs
- SystemDropShadowChrome.cs
- COM2IProvidePropertyBuilderHandler.cs
- JoinElimination.cs
- PrefixHandle.cs
- TextEditorLists.cs
- HelpInfo.cs
- PackWebResponse.cs
- SelectorAutomationPeer.cs
- ElementHostPropertyMap.cs
- ThreadExceptionDialog.cs
- HostedImpersonationContext.cs
- MdiWindowListItemConverter.cs
- IPipelineRuntime.cs
- BoolExpr.cs
- SiteOfOriginPart.cs
- Html32TextWriter.cs
- CodeParameterDeclarationExpressionCollection.cs
- WS2007HttpBindingElement.cs
- SchemaTypeEmitter.cs
- Internal.cs
- FileDialogCustomPlace.cs
- ConfigurationProviderException.cs
- XmlCharCheckingWriter.cs
- Int16Animation.cs
- TextProviderWrapper.cs
- TreeNode.cs
- AnnotationAdorner.cs
- ThemeDirectoryCompiler.cs
- Registry.cs
- TextLineBreak.cs
- LogicalMethodInfo.cs
- NameNode.cs
- DesignerLoader.cs
- Transactions.cs
- ChunkedMemoryStream.cs
- StringValidator.cs
- SID.cs
- CompiledQuery.cs
- DbConnectionOptions.cs
- XmlSchemaComplexType.cs
- TypeAccessException.cs
- ElementAction.cs
- WebPartConnectionsCancelEventArgs.cs
- _DisconnectOverlappedAsyncResult.cs
- Double.cs
- QuaternionValueSerializer.cs
- ValidatingReaderNodeData.cs
- HealthMonitoringSection.cs
- CompiledQueryCacheEntry.cs