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
- TransformProviderWrapper.cs
- MetadataException.cs
- WorkflowServiceOperationListItem.cs
- EmptyEnumerable.cs
- HtmlControl.cs
- PreservationFileWriter.cs
- QueryConverter.cs
- DoubleStorage.cs
- RegistrySecurity.cs
- OleDbMetaDataFactory.cs
- X509Extension.cs
- NativeMethods.cs
- TypeConverter.cs
- HttpResponse.cs
- ToolBarButtonClickEvent.cs
- WebConfigurationHost.cs
- VariableExpressionConverter.cs
- FlowLayoutPanel.cs
- dsa.cs
- SecurityResources.cs
- GroupDescription.cs
- TypeTypeConverter.cs
- DbDataAdapter.cs
- NamespaceQuery.cs
- DataKeyArray.cs
- XPathNavigatorKeyComparer.cs
- TypeSystem.cs
- RTLAwareMessageBox.cs
- HttpApplicationStateBase.cs
- Figure.cs
- SmiGettersStream.cs
- ZipIOCentralDirectoryFileHeader.cs
- HttpListenerResponse.cs
- PagedDataSource.cs
- FullTextBreakpoint.cs
- CqlBlock.cs
- VariableAction.cs
- WebContext.cs
- LambdaCompiler.Statements.cs
- DetailsViewRowCollection.cs
- SqlDataSourceCommandEventArgs.cs
- DoubleCollectionConverter.cs
- TokenBasedSetEnumerator.cs
- HyperLinkColumn.cs
- ProcessModelInfo.cs
- X509ChainPolicy.cs
- DataColumnPropertyDescriptor.cs
- ReadOnlyCollectionBase.cs
- CellLabel.cs
- DataBindingCollection.cs
- CryptoHelper.cs
- EventArgs.cs
- ExtendedPropertyInfo.cs
- XsltSettings.cs
- RegexMatch.cs
- DateTimeAutomationPeer.cs
- MailWebEventProvider.cs
- FontSourceCollection.cs
- ConfigXmlComment.cs
- XmlExceptionHelper.cs
- EntityUtil.cs
- IndexerHelper.cs
- RIPEMD160Managed.cs
- SizeAnimationBase.cs
- DateTimeOffset.cs
- DbDataReader.cs
- DataGridViewLinkCell.cs
- TemplateControlBuildProvider.cs
- HotSpot.cs
- ToolStripContainer.cs
- XamlTypeMapper.cs
- ChannelBinding.cs
- Menu.cs
- TransportSecurityProtocolFactory.cs
- XsltConvert.cs
- TrustLevel.cs
- Metadata.cs
- CacheSection.cs
- Win32.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- NavigationProperty.cs
- CursorConverter.cs
- DataGridViewCellMouseEventArgs.cs
- CodeDirectoryCompiler.cs
- CompositeFontInfo.cs
- ServiceSecurityAuditElement.cs
- ConnectionPoolManager.cs
- LinqToSqlWrapper.cs
- TemplateEditingService.cs
- GorillaCodec.cs
- HtmlWindow.cs
- UMPAttributes.cs
- ErrorActivity.cs
- RegionData.cs
- VariableQuery.cs
- TextBoxLine.cs
- PerformanceCounterManager.cs
- LowerCaseStringConverter.cs
- BitHelper.cs
- VectorKeyFrameCollection.cs