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
- DesignerOptionService.cs
- DockPanel.cs
- HTMLTagNameToTypeMapper.cs
- MappedMetaModel.cs
- HtmlUtf8RawTextWriter.cs
- ColumnWidthChangingEvent.cs
- UIElementAutomationPeer.cs
- DoubleAnimationClockResource.cs
- TextServicesPropertyRanges.cs
- ConfigurationStrings.cs
- Column.cs
- TextBoxLine.cs
- ResolveNameEventArgs.cs
- SSmlParser.cs
- TypeElement.cs
- XmlSequenceWriter.cs
- SymDocumentType.cs
- DataBoundControl.cs
- DesignSurface.cs
- QuaternionAnimationUsingKeyFrames.cs
- SerializationEventsCache.cs
- BindingGroup.cs
- ScrollBar.cs
- TextTreePropertyUndoUnit.cs
- SerializerProvider.cs
- EntityDataSourceView.cs
- StateDesignerConnector.cs
- CursorConverter.cs
- CfgRule.cs
- MessageLoggingElement.cs
- WaitHandleCannotBeOpenedException.cs
- NavigationProperty.cs
- QueryStack.cs
- OleDbMetaDataFactory.cs
- HtmlPhoneCallAdapter.cs
- SourceElementsCollection.cs
- RawStylusSystemGestureInputReport.cs
- FrameAutomationPeer.cs
- ArrayList.cs
- ParallelEnumerable.cs
- View.cs
- UseAttributeSetsAction.cs
- Operand.cs
- DrawingCollection.cs
- ObjectDataSourceMethodEventArgs.cs
- PropertyMap.cs
- PasswordDeriveBytes.cs
- ApplicationActivator.cs
- Baml6ConstructorInfo.cs
- WebDisplayNameAttribute.cs
- TextHidden.cs
- AttributeQuery.cs
- DesignBindingConverter.cs
- BitmapMetadataEnumerator.cs
- DateBoldEvent.cs
- BinHexDecoder.cs
- WindowsFormsLinkLabel.cs
- BuilderElements.cs
- MaterialCollection.cs
- FileUpload.cs
- ConfigurationFileMap.cs
- WebPartDisplayMode.cs
- StringAnimationUsingKeyFrames.cs
- BlurBitmapEffect.cs
- OpenTypeLayout.cs
- TraceListeners.cs
- ProfileServiceManager.cs
- SessionStateUtil.cs
- TransformerTypeCollection.cs
- FontFamilyIdentifier.cs
- DefaultSection.cs
- WebServiceTypeData.cs
- WmfPlaceableFileHeader.cs
- SizeF.cs
- RegistrySecurity.cs
- FixedHighlight.cs
- BitmapDecoder.cs
- DbCommandTree.cs
- LocatorPartList.cs
- HttpRequest.cs
- CodeCatchClause.cs
- Point3DConverter.cs
- InitializerFacet.cs
- Win32KeyboardDevice.cs
- TitleStyle.cs
- DocumentSignatureManager.cs
- ListManagerBindingsCollection.cs
- MessageQueuePermissionAttribute.cs
- MessageQueue.cs
- WinFormsSpinner.cs
- OdbcConnectionHandle.cs
- XMLSyntaxException.cs
- DiscardableAttribute.cs
- DesignBinding.cs
- ArglessEventHandlerProxy.cs
- PageCatalogPart.cs
- DetailsViewDesigner.cs
- PointAnimationUsingPath.cs
- LineVisual.cs
- ParameterInfo.cs