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
- DataComponentMethodGenerator.cs
- ColumnClickEvent.cs
- DrawItemEvent.cs
- FormattedText.cs
- DatatypeImplementation.cs
- ClientSideQueueItem.cs
- RootBrowserWindow.cs
- DrawingBrush.cs
- SystemException.cs
- HandlerFactoryCache.cs
- BinaryObjectWriter.cs
- XmlUtf8RawTextWriter.cs
- EnvelopedPkcs7.cs
- Color.cs
- WeakReadOnlyCollection.cs
- CodeGenerationManager.cs
- Model3DGroup.cs
- HttpBrowserCapabilitiesBase.cs
- ModelPerspective.cs
- AnnotationAuthorChangedEventArgs.cs
- SafeLibraryHandle.cs
- UserNamePasswordServiceCredential.cs
- MemoryPressure.cs
- Decoder.cs
- DoubleCollectionConverter.cs
- ExecutionScope.cs
- ObjectDataSourceView.cs
- WindowsGraphics.cs
- WebBrowserHelper.cs
- MenuEventArgs.cs
- RelationshipConverter.cs
- KnownTypeHelper.cs
- ReaderWriterLock.cs
- RelationshipManager.cs
- Marshal.cs
- EventRoute.cs
- ToolStripDesignerAvailabilityAttribute.cs
- AlgoModule.cs
- CollectionBuilder.cs
- WizardSideBarListControlItemEventArgs.cs
- FormViewCommandEventArgs.cs
- Compiler.cs
- BypassElement.cs
- ModelVisual3D.cs
- SelectManyQueryOperator.cs
- DragDeltaEventArgs.cs
- HostingPreferredMapPath.cs
- SpoolingTaskBase.cs
- StrokeCollectionDefaultValueFactory.cs
- ServicePointManagerElement.cs
- RTLAwareMessageBox.cs
- XmlTypeAttribute.cs
- PeerContact.cs
- NameValueSectionHandler.cs
- SBCSCodePageEncoding.cs
- AuthenticatingEventArgs.cs
- SystemSounds.cs
- LongTypeConverter.cs
- IndentedWriter.cs
- BackgroundFormatInfo.cs
- RuntimeEnvironment.cs
- KeyValueInternalCollection.cs
- Error.cs
- CodeCommentStatement.cs
- ToolStripDropDownClosedEventArgs.cs
- FileDetails.cs
- SimpleType.cs
- HtmlInputRadioButton.cs
- UrlPath.cs
- DataGridItemCollection.cs
- DataGridViewButtonColumn.cs
- EffectiveValueEntry.cs
- SqlDataSourceCache.cs
- CultureTableRecord.cs
- SessionStateUtil.cs
- ScrollProviderWrapper.cs
- XmlSecureResolver.cs
- PromptBuilder.cs
- LabelEditEvent.cs
- NativeDirectoryServicesQueryAPIs.cs
- DataBoundControlAdapter.cs
- XPathDocument.cs
- UniformGrid.cs
- RsaElement.cs
- DrawingCollection.cs
- XmlSchemaObject.cs
- DynamicResourceExtension.cs
- LongPath.cs
- DataBoundControlAdapter.cs
- XmlSerializerVersionAttribute.cs
- DoubleKeyFrameCollection.cs
- StubHelpers.cs
- StrokeNodeOperations2.cs
- TableLayoutPanelCodeDomSerializer.cs
- ProviderCommandInfoUtils.cs
- AnnotationResourceCollection.cs
- Automation.cs
- PeerDuplexChannel.cs
- StateMachineWorkflowInstance.cs
- ContainerFilterService.cs