Code:
/ FX-1434 / FX-1434 / 1.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
- SafeEventLogReadHandle.cs
- Matrix3DStack.cs
- ListViewPagedDataSource.cs
- BorderGapMaskConverter.cs
- ThemeableAttribute.cs
- SqlCacheDependencySection.cs
- SoapExtensionTypeElement.cs
- COM2TypeInfoProcessor.cs
- DataQuery.cs
- FileVersionInfo.cs
- VersionedStream.cs
- ComponentSerializationService.cs
- SurrogateDataContract.cs
- SqlDependencyListener.cs
- TextEditorContextMenu.cs
- ClientSideQueueItem.cs
- JournalEntryStack.cs
- DataGridViewRow.cs
- MessageContractAttribute.cs
- MetaModel.cs
- SafeNativeMethods.cs
- CompilationLock.cs
- DataIdProcessor.cs
- SecurityStandardsManager.cs
- DataPager.cs
- IdnMapping.cs
- CodeDomLoader.cs
- TextComposition.cs
- BehaviorEditorPart.cs
- RectAnimationUsingKeyFrames.cs
- BamlBinaryWriter.cs
- XsdDateTime.cs
- TaskFileService.cs
- XmlDictionaryReader.cs
- ExpressionBuilder.cs
- RewritingPass.cs
- LayoutUtils.cs
- SecurityDocument.cs
- GlyphManager.cs
- DataGridViewCellFormattingEventArgs.cs
- SignatureResourcePool.cs
- StatusBarPanelClickEvent.cs
- _AcceptOverlappedAsyncResult.cs
- UserControl.cs
- Maps.cs
- HttpDigestClientCredential.cs
- HtmlInputFile.cs
- TraceUtility.cs
- EventSinkHelperWriter.cs
- FormatConvertedBitmap.cs
- Activity.cs
- AutomationAttributeInfo.cs
- ToolStripArrowRenderEventArgs.cs
- MsmqIntegrationBindingCollectionElement.cs
- RectAnimationUsingKeyFrames.cs
- OleDbDataReader.cs
- WebPartUtil.cs
- ActiveXMessageFormatter.cs
- TagPrefixAttribute.cs
- GeneralTransformCollection.cs
- Int32.cs
- PieceDirectory.cs
- HScrollProperties.cs
- BeginEvent.cs
- SpecialFolderEnumConverter.cs
- Preprocessor.cs
- UrlPropertyAttribute.cs
- ListSourceHelper.cs
- WebPartHeaderCloseVerb.cs
- WebReferencesBuildProvider.cs
- ControlAdapter.cs
- ExpressionBindingCollection.cs
- ExceptionValidationRule.cs
- Button.cs
- DesignerExtenders.cs
- HttpDebugHandler.cs
- CustomAssemblyResolver.cs
- NCryptSafeHandles.cs
- Int32AnimationBase.cs
- TextTreeNode.cs
- JulianCalendar.cs
- _FixedSizeReader.cs
- OleDbPropertySetGuid.cs
- ProgressiveCrcCalculatingStream.cs
- XmlSchemaComplexContentRestriction.cs
- DataKey.cs
- InfoCardKeyedHashAlgorithm.cs
- CaseCqlBlock.cs
- SafeRegistryHandle.cs
- ComboBox.cs
- ObjectAssociationEndMapping.cs
- HostedTransportConfigurationBase.cs
- ImageInfo.cs
- SHA512Managed.cs
- Popup.cs
- RedistVersionInfo.cs
- Point.cs
- StringFunctions.cs
- TableNameAttribute.cs
- WebSysDisplayNameAttribute.cs