Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CompMod / System / Diagnostics / AssertSection.cs / 1 / AssertSection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.Configuration; namespace System.Diagnostics { internal class AssertSection : ConfigurationElement { private static readonly ConfigurationPropertyCollection _properties; private static readonly ConfigurationProperty _propAssertUIEnabled = new ConfigurationProperty("assertuienabled", typeof(bool), true, ConfigurationPropertyOptions.None); private static readonly ConfigurationProperty _propLogFile = new ConfigurationProperty("logfilename", typeof(string), String.Empty, ConfigurationPropertyOptions.None); static AssertSection() { _properties = new ConfigurationPropertyCollection(); _properties.Add(_propAssertUIEnabled); _properties.Add(_propLogFile); } [ConfigurationProperty("assertuienabled", DefaultValue = true)] public bool AssertUIEnabled { get { return (bool) this[_propAssertUIEnabled]; } } [ConfigurationProperty("logfilename", DefaultValue = "")] public string LogFileName { get { return (string) this[_propLogFile]; } } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.Configuration; namespace System.Diagnostics { internal class AssertSection : ConfigurationElement { private static readonly ConfigurationPropertyCollection _properties; private static readonly ConfigurationProperty _propAssertUIEnabled = new ConfigurationProperty("assertuienabled", typeof(bool), true, ConfigurationPropertyOptions.None); private static readonly ConfigurationProperty _propLogFile = new ConfigurationProperty("logfilename", typeof(string), String.Empty, ConfigurationPropertyOptions.None); static AssertSection() { _properties = new ConfigurationPropertyCollection(); _properties.Add(_propAssertUIEnabled); _properties.Add(_propLogFile); } [ConfigurationProperty("assertuienabled", DefaultValue = true)] public bool AssertUIEnabled { get { return (bool) this[_propAssertUIEnabled]; } } [ConfigurationProperty("logfilename", DefaultValue = "")] public string LogFileName { get { return (string) this[_propLogFile]; } } protected override ConfigurationPropertyCollection Properties { get { return _properties; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- VisualStyleRenderer.cs
- InvokeMethodActivityDesigner.cs
- GcHandle.cs
- JumpPath.cs
- UniqueID.cs
- ResourceDescriptionAttribute.cs
- RecipientInfo.cs
- GPPOINTF.cs
- Dump.cs
- StylusEditingBehavior.cs
- SQLBinaryStorage.cs
- PolyQuadraticBezierSegment.cs
- DecimalConverter.cs
- NumberFunctions.cs
- BoolLiteral.cs
- FormViewPagerRow.cs
- Expressions.cs
- XmlSchemaObjectCollection.cs
- HostVisual.cs
- HttpMethodConstraint.cs
- LocalServiceSecuritySettingsElement.cs
- URLMembershipCondition.cs
- ProfileServiceManager.cs
- WindowsMenu.cs
- CompletionCallbackWrapper.cs
- DialogBaseForm.cs
- HGlobalSafeHandle.cs
- XmlReflectionImporter.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- WbmpConverter.cs
- OutArgumentConverter.cs
- PatternMatchRules.cs
- ObjectPersistData.cs
- WebMessageEncodingElement.cs
- WebRequestModuleElementCollection.cs
- DrawingGroup.cs
- HtmlGenericControl.cs
- DeviceContexts.cs
- User.cs
- TaskExtensions.cs
- SqlMetaData.cs
- ZipIOCentralDirectoryBlock.cs
- BufferedStream.cs
- odbcmetadatacolumnnames.cs
- Transform3D.cs
- TypeInitializationException.cs
- StreamGeometryContext.cs
- BulletChrome.cs
- WebPartCatalogCloseVerb.cs
- XmlEventCache.cs
- XhtmlTextWriter.cs
- XmlNodeChangedEventArgs.cs
- ICollection.cs
- MultiByteCodec.cs
- DocumentAutomationPeer.cs
- CalendarDateChangedEventArgs.cs
- oledbconnectionstring.cs
- ContractCodeDomInfo.cs
- XmlLanguage.cs
- DataGridViewSortCompareEventArgs.cs
- XmlHierarchicalEnumerable.cs
- activationcontext.cs
- webclient.cs
- X500Name.cs
- DataBoundLiteralControl.cs
- UserControl.cs
- EraserBehavior.cs
- MenuItem.cs
- HostTimeoutsElement.cs
- ListSortDescriptionCollection.cs
- OracleBoolean.cs
- KeyValueConfigurationElement.cs
- TargetControlTypeAttribute.cs
- AuthenticationService.cs
- XmlSchemaAppInfo.cs
- AutomationAttributeInfo.cs
- CopyOnWriteList.cs
- HelpInfo.cs
- UniqueCodeIdentifierScope.cs
- Authorization.cs
- ExtensionCollection.cs
- SoapDocumentServiceAttribute.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- GroupBox.cs
- DataSourceView.cs
- CreationContext.cs
- DialogWindow.cs
- LinqDataSourceDisposeEventArgs.cs
- ChangeProcessor.cs
- CodeSnippetStatement.cs
- HijriCalendar.cs
- XmlElementAttributes.cs
- AdCreatedEventArgs.cs
- XmlAnyElementAttributes.cs
- XmlTypeMapping.cs
- SqlStream.cs
- SqlDataSourceStatusEventArgs.cs
- DatagridviewDisplayedBandsData.cs
- BamlLocalizationDictionary.cs
- Roles.cs