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
- dbdatarecord.cs
- DecoderBestFitFallback.cs
- ComponentGuaranteesAttribute.cs
- FixedSOMTable.cs
- MarshalByRefObject.cs
- AttachedPropertyInfo.cs
- RTLAwareMessageBox.cs
- DataGridViewButtonColumn.cs
- ObjectPersistData.cs
- HelpKeywordAttribute.cs
- DesignerOptionService.cs
- SplineQuaternionKeyFrame.cs
- AssemblyInfo.cs
- QilParameter.cs
- BitHelper.cs
- HttpResponseHeader.cs
- IdentityNotMappedException.cs
- EdmType.cs
- XmlWriter.cs
- DataSourceSelectArguments.cs
- GeneralTransform3D.cs
- BaseCodeDomTreeGenerator.cs
- OperationResponse.cs
- DoubleKeyFrameCollection.cs
- RenderData.cs
- CultureTable.cs
- ScaleTransform3D.cs
- SqlUtil.cs
- FontStretches.cs
- xml.cs
- CryptoStream.cs
- AuthorizationRuleCollection.cs
- TableCellCollection.cs
- PackageRelationshipCollection.cs
- DataGridCommandEventArgs.cs
- ApplicationTrust.cs
- TypeConstant.cs
- CompiledRegexRunnerFactory.cs
- DesignerDataTable.cs
- PeerTransportListenAddressValidator.cs
- Rect3DValueSerializer.cs
- ApplicationBuildProvider.cs
- NullReferenceException.cs
- SystemTcpConnection.cs
- CodeMethodReturnStatement.cs
- ProgressBarHighlightConverter.cs
- CatalogZoneAutoFormat.cs
- FrameworkContentElement.cs
- Codec.cs
- LogEntry.cs
- CommentAction.cs
- ToolboxComponentsCreatedEventArgs.cs
- TableParaClient.cs
- LogFlushAsyncResult.cs
- GridViewRow.cs
- AccessKeyManager.cs
- CodeMemberMethod.cs
- SQLBinaryStorage.cs
- VoiceObjectToken.cs
- IsolatedStorage.cs
- FilteredXmlReader.cs
- UnconditionalPolicy.cs
- AnimationClockResource.cs
- PriorityQueue.cs
- Msec.cs
- BaseTemplateCodeDomTreeGenerator.cs
- OletxEnlistment.cs
- ObjectDataProvider.cs
- WebContext.cs
- ClientUrlResolverWrapper.cs
- PeerApplication.cs
- EntityDataSource.cs
- StringResourceManager.cs
- IPGlobalProperties.cs
- SafeArrayTypeMismatchException.cs
- ThicknessKeyFrameCollection.cs
- DrawingGroup.cs
- WrappingXamlSchemaContext.cs
- SQLInt16.cs
- ParallelRangeManager.cs
- AsnEncodedData.cs
- UnsafeNetInfoNativeMethods.cs
- ReadOnlyTernaryTree.cs
- HtmlTable.cs
- LongCountAggregationOperator.cs
- ValidationErrorEventArgs.cs
- Compiler.cs
- ISAPIApplicationHost.cs
- ContentElementAutomationPeer.cs
- TypeToStringValueConverter.cs
- CacheEntry.cs
- DataGridViewColumnStateChangedEventArgs.cs
- ChangeNode.cs
- BinaryObjectWriter.cs
- GeneralTransform3DTo2DTo3D.cs
- TypeToken.cs
- ServerValidateEventArgs.cs
- UniqueIdentifierService.cs
- FactoryRecord.cs
- BaseProcessor.cs