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
- PropagationProtocolsTracing.cs
- FreeFormDragDropManager.cs
- AtomServiceDocumentSerializer.cs
- ToolStripRendererSwitcher.cs
- Typeface.cs
- login.cs
- DataStreamFromComStream.cs
- KeyMatchBuilder.cs
- UrlPath.cs
- WsdlBuildProvider.cs
- DispatcherEventArgs.cs
- GroupStyle.cs
- DataSourceCache.cs
- TimerExtension.cs
- TabControl.cs
- BindToObject.cs
- XmlCDATASection.cs
- NativeMethods.cs
- QueryStringParameter.cs
- UniformGrid.cs
- DataGridViewRowCollection.cs
- ExpressionNode.cs
- SystemUnicastIPAddressInformation.cs
- TextLineResult.cs
- PageCache.cs
- ImportCatalogPart.cs
- RenderDataDrawingContext.cs
- UIAgentMonitor.cs
- ProtectedConfigurationSection.cs
- DefaultEventAttribute.cs
- LogSwitch.cs
- ThaiBuddhistCalendar.cs
- StreamReader.cs
- CollectionExtensions.cs
- XPathSelectionIterator.cs
- EntityViewContainer.cs
- EntityContainerEntitySet.cs
- KnownIds.cs
- FreeFormPanel.cs
- WhitespaceSignificantCollectionAttribute.cs
- NetSectionGroup.cs
- SingleObjectCollection.cs
- PerformanceCounterPermissionEntryCollection.cs
- PrePostDescendentsWalker.cs
- ProviderCollection.cs
- CompModSwitches.cs
- PropertyDescriptorComparer.cs
- CrossAppDomainChannel.cs
- Matrix3D.cs
- ServicePointManagerElement.cs
- ObsoleteAttribute.cs
- PropertyIDSet.cs
- RowToFieldTransformer.cs
- StringConverter.cs
- MatrixKeyFrameCollection.cs
- NonVisualControlAttribute.cs
- FactoryRecord.cs
- CodeRegionDirective.cs
- QuotedPrintableStream.cs
- CharacterBuffer.cs
- LostFocusEventManager.cs
- smtppermission.cs
- MouseWheelEventArgs.cs
- xml.cs
- InvalidWMPVersionException.cs
- XamlStyleSerializer.cs
- FormsIdentity.cs
- ByteConverter.cs
- KeyboardEventArgs.cs
- CommandBinding.cs
- DataRecordInfo.cs
- X509CertificateCollection.cs
- WebResponse.cs
- CoTaskMemSafeHandle.cs
- AndCondition.cs
- Accessible.cs
- AttributedMetaModel.cs
- DataGridViewComboBoxEditingControl.cs
- OleDbRowUpdatedEvent.cs
- DesignConnectionCollection.cs
- BaseAsyncResult.cs
- XmlDataImplementation.cs
- InputElement.cs
- DataBoundControl.cs
- HtmlLink.cs
- ShapingEngine.cs
- EntityConnectionStringBuilder.cs
- WhitespaceRuleLookup.cs
- ConnectionManagementElement.cs
- DbConnectionHelper.cs
- ClientSection.cs
- DiscardableAttribute.cs
- AsyncPostBackErrorEventArgs.cs
- DataControlFieldCell.cs
- ComponentRenameEvent.cs
- TagMapInfo.cs
- BatchParser.cs
- SelectionItemPattern.cs
- BStrWrapper.cs
- TypeUnloadedException.cs