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
- ToolStripItemTextRenderEventArgs.cs
- SafeSecurityHandles.cs
- ExtenderProviderService.cs
- RbTree.cs
- ProcessHostMapPath.cs
- BamlWriter.cs
- LingerOption.cs
- AsyncOperationManager.cs
- BrushProxy.cs
- IntSecurity.cs
- FileChangesMonitor.cs
- Substitution.cs
- SizeIndependentAnimationStorage.cs
- Console.cs
- SymbolType.cs
- Lasso.cs
- DBSqlParserTable.cs
- Model3DGroup.cs
- OleTxTransaction.cs
- HiddenFieldPageStatePersister.cs
- WebBrowserSiteBase.cs
- ZipIOExtraFieldZip64Element.cs
- DependencyPropertyKey.cs
- Deflater.cs
- SystemUdpStatistics.cs
- QilTypeChecker.cs
- ObjectParameter.cs
- AssemblyCollection.cs
- RowToParametersTransformer.cs
- RenameRuleObjectDialog.cs
- AssemblyInfo.cs
- WebPartConnectionsConfigureVerb.cs
- BinaryEditor.cs
- TypeReference.cs
- DataRowChangeEvent.cs
- ImageAnimator.cs
- CodePageEncoding.cs
- RectAnimationClockResource.cs
- RootDesignerSerializerAttribute.cs
- Icon.cs
- BufferedGraphicsManager.cs
- Attribute.cs
- DynamicRouteExpression.cs
- ErrorStyle.cs
- RelationalExpressions.cs
- ComponentManagerBroker.cs
- LoginDesigner.cs
- figurelengthconverter.cs
- DataControlLinkButton.cs
- CalloutQueueItem.cs
- FormViewInsertedEventArgs.cs
- DefaultParameterValueAttribute.cs
- FileDataSourceCache.cs
- SQLDecimalStorage.cs
- MenuRendererStandards.cs
- IFlowDocumentViewer.cs
- DateTimeUtil.cs
- ProfileSection.cs
- VectorCollection.cs
- CheckStoreFileValidityRequest.cs
- PersonalizablePropertyEntry.cs
- XsdBuilder.cs
- DataGridViewCellStyle.cs
- ControlPropertyNameConverter.cs
- ThemeDictionaryExtension.cs
- DBCommand.cs
- SymLanguageVendor.cs
- MenuItemStyleCollection.cs
- AttachedPropertyMethodSelector.cs
- XmlSchemaObjectCollection.cs
- StaticResourceExtension.cs
- BindingContext.cs
- WmlCalendarAdapter.cs
- Ipv6Element.cs
- SafePointer.cs
- WebPartEditorCancelVerb.cs
- Automation.cs
- IncrementalHitTester.cs
- Propagator.ExtentPlaceholderCreator.cs
- GridViewRow.cs
- AppearanceEditorPart.cs
- QuaternionIndependentAnimationStorage.cs
- ClientProtocol.cs
- SimpleTableProvider.cs
- SqlConnectionFactory.cs
- DataServiceQueryException.cs
- FileReservationCollection.cs
- GenericIdentity.cs
- NotifyIcon.cs
- CompilerCollection.cs
- BamlRecordHelper.cs
- DataTableCollection.cs
- TextViewSelectionProcessor.cs
- FrameDimension.cs
- HMAC.cs
- SettingsProviderCollection.cs
- VisualStyleTypesAndProperties.cs
- DiscardableAttribute.cs
- OutputWindow.cs
- Emitter.cs