Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. 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
- TargetParameterCountException.cs
- AsyncCodeActivity.cs
- BamlBinaryReader.cs
- CompositeActivityTypeDescriptor.cs
- SizeF.cs
- ExpandSegmentCollection.cs
- GraphicsPath.cs
- DatagridviewDisplayedBandsData.cs
- WorkflowPageSetupDialog.cs
- CustomValidator.cs
- MarkupCompilePass1.cs
- UpdateCompiler.cs
- TypeSemantics.cs
- ServicesUtilities.cs
- XmlSchemaChoice.cs
- KeyValuePair.cs
- PageEventArgs.cs
- KeyedCollection.cs
- SQLDecimalStorage.cs
- ComplexType.cs
- CurrentChangingEventManager.cs
- ItemDragEvent.cs
- ToolStripPanelDesigner.cs
- LoginDesignerUtil.cs
- CodeEventReferenceExpression.cs
- WebEventTraceProvider.cs
- basevalidator.cs
- AssertSection.cs
- XamlTemplateSerializer.cs
- FilterQuery.cs
- ToolboxSnapDragDropEventArgs.cs
- EntryIndex.cs
- DoubleSumAggregationOperator.cs
- XmlAttributeCache.cs
- AppSettingsSection.cs
- ValidationResult.cs
- WsdlBuildProvider.cs
- NonSerializedAttribute.cs
- RegexCode.cs
- SQLRoleProvider.cs
- DesignerTransaction.cs
- GenericTypeParameterBuilder.cs
- AssertFilter.cs
- DataGridViewRowHeaderCell.cs
- HandlerFactoryCache.cs
- DataGridItemEventArgs.cs
- SingleAnimationBase.cs
- TemplatedAdorner.cs
- DBDataPermission.cs
- SingleAnimation.cs
- OrderingQueryOperator.cs
- TextServicesDisplayAttributePropertyRanges.cs
- ConnectionManager.cs
- arc.cs
- MSHTMLHost.cs
- MouseCaptureWithinProperty.cs
- DataGridColumnsPage.cs
- XmlBoundElement.cs
- WeakRefEnumerator.cs
- ExternalDataExchangeClient.cs
- SelectionItemPattern.cs
- DataGridCommandEventArgs.cs
- WorkflowViewElement.cs
- FixedDocument.cs
- HostingEnvironmentSection.cs
- InlineCategoriesDocument.cs
- DataGridColumnDropSeparator.cs
- TdsParserSessionPool.cs
- ExpressionBuilderContext.cs
- EventDescriptor.cs
- UnsafeCollabNativeMethods.cs
- StringAttributeCollection.cs
- VoiceChangeEventArgs.cs
- Image.cs
- ProxySimple.cs
- ProviderCollection.cs
- TextContainerChangeEventArgs.cs
- RadioButtonList.cs
- SchemaInfo.cs
- Viewport3DAutomationPeer.cs
- PagerSettings.cs
- DiagnosticsConfiguration.cs
- HTMLTextWriter.cs
- SecurityValidationBehavior.cs
- ControlPaint.cs
- ThicknessAnimationBase.cs
- LinkLabelLinkClickedEvent.cs
- ObjectResult.cs
- GeometryHitTestResult.cs
- BmpBitmapDecoder.cs
- ConfigurationConverterBase.cs
- ScrollEventArgs.cs
- CallbackException.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- SecureStringHasher.cs
- SQLMoneyStorage.cs
- MatrixKeyFrameCollection.cs
- WindowsListViewItem.cs
- Point3DAnimationBase.cs
- NonBatchDirectoryCompiler.cs