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
- ModelTypeConverter.cs
- Exceptions.cs
- BitmapDownload.cs
- WpfWebRequestHelper.cs
- XslTransform.cs
- FixedFindEngine.cs
- CompositionAdorner.cs
- OleDbDataAdapter.cs
- TcpTransportBindingElement.cs
- VectorAnimationBase.cs
- HostProtectionException.cs
- XmlElement.cs
- FieldBuilder.cs
- NamedPipeTransportManager.cs
- ConfigurationValidatorBase.cs
- QueryIntervalOp.cs
- CustomAttribute.cs
- GroupDescription.cs
- EarlyBoundInfo.cs
- GregorianCalendar.cs
- LambdaCompiler.Address.cs
- MustUnderstandBehavior.cs
- ReflectionServiceProvider.cs
- Merger.cs
- PropertyManager.cs
- PowerModeChangedEventArgs.cs
- MemberInitExpression.cs
- MruCache.cs
- WsdlContractConversionContext.cs
- SQLMoney.cs
- TextRangeEdit.cs
- HttpModuleCollection.cs
- DataSourceSelectArguments.cs
- HyperLinkStyle.cs
- ImageListUtils.cs
- HashStream.cs
- AsyncCompletedEventArgs.cs
- StartUpEventArgs.cs
- HwndAppCommandInputProvider.cs
- UInt64.cs
- DispatcherEventArgs.cs
- UpdatePanelTrigger.cs
- LoadedEvent.cs
- ToolTip.cs
- LinkDescriptor.cs
- PrinterResolution.cs
- Geometry3D.cs
- RsaKeyIdentifierClause.cs
- ColumnClickEvent.cs
- SqlDataSourceQuery.cs
- HttpCapabilitiesBase.cs
- DocumentOrderQuery.cs
- SafeFileHandle.cs
- Duration.cs
- ImportContext.cs
- PipeConnection.cs
- StorageComplexPropertyMapping.cs
- CodePrimitiveExpression.cs
- PocoEntityKeyStrategy.cs
- DbTransaction.cs
- HeaderPanel.cs
- ValidatedControlConverter.cs
- Decoder.cs
- SoapTypeAttribute.cs
- Transactions.cs
- ForceCopyBuildProvider.cs
- ConfigsHelper.cs
- InkCanvasSelection.cs
- SafeFileHandle.cs
- AutoScrollHelper.cs
- ResourcePermissionBaseEntry.cs
- DbCommandTree.cs
- HtmlTableCellCollection.cs
- CommandConverter.cs
- figurelengthconverter.cs
- DbParameterCollectionHelper.cs
- CriticalFinalizerObject.cs
- ScrollChrome.cs
- KeyValueSerializer.cs
- XamlToRtfParser.cs
- ClaimComparer.cs
- EtwProvider.cs
- CodeDelegateInvokeExpression.cs
- XmlSerializerSection.cs
- Control.cs
- FontUnitConverter.cs
- CollectionsUtil.cs
- HtmlContainerControl.cs
- DropShadowBitmapEffect.cs
- SafeEventLogWriteHandle.cs
- RequestValidator.cs
- CheckableControlBaseAdapter.cs
- VirtualPathUtility.cs
- ProfileService.cs
- ImageSourceConverter.cs
- CacheChildrenQuery.cs
- ClientFormsAuthenticationMembershipProvider.cs
- Geometry.cs
- BooleanExpr.cs
- UpdateExpressionVisitor.cs