Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- SchemaImporter.cs
- StatusBar.cs
- ToolboxItem.cs
- RegexGroup.cs
- Annotation.cs
- ToolStrip.cs
- IdleTimeoutMonitor.cs
- SqlErrorCollection.cs
- CancellationTokenSource.cs
- DropShadowBitmapEffect.cs
- XmlImplementation.cs
- PropertyNames.cs
- ControlValuePropertyAttribute.cs
- OuterGlowBitmapEffect.cs
- NullableLongAverageAggregationOperator.cs
- ProcessModule.cs
- UnsafeNativeMethods.cs
- DefaultEventAttribute.cs
- VisualStyleInformation.cs
- ZipIORawDataFileBlock.cs
- WindowsFont.cs
- LateBoundBitmapDecoder.cs
- ConnectionConsumerAttribute.cs
- DebugControllerThread.cs
- HtmlMeta.cs
- PrinterUnitConvert.cs
- WorkflowDesignerMessageFilter.cs
- HotSpot.cs
- MenuItem.cs
- StylusPointProperties.cs
- SvcMapFileSerializer.cs
- XmlSubtreeReader.cs
- TextDecoration.cs
- EncoderFallback.cs
- IERequestCache.cs
- ObjectStateManager.cs
- Rule.cs
- ConstantSlot.cs
- SchemaName.cs
- HtmlUtf8RawTextWriter.cs
- RepeatInfo.cs
- RenderContext.cs
- EtwTrace.cs
- DataContractJsonSerializerOperationFormatter.cs
- SyndicationElementExtensionCollection.cs
- SQLInt64.cs
- ThemeDictionaryExtension.cs
- PrefixQName.cs
- DbProviderFactories.cs
- BamlLocalizableResource.cs
- ElementHostAutomationPeer.cs
- DataObjectPastingEventArgs.cs
- Compiler.cs
- ISFClipboardData.cs
- BaseParagraph.cs
- DurationConverter.cs
- MenuItemBinding.cs
- EdgeModeValidation.cs
- X509CertificateValidator.cs
- MachineKeyConverter.cs
- ListArgumentProvider.cs
- AmbientLight.cs
- HuffModule.cs
- Merger.cs
- StaticContext.cs
- PDBReader.cs
- ButtonBaseAdapter.cs
- WebFaultClientMessageInspector.cs
- AvTrace.cs
- SemanticTag.cs
- DefaultTextStoreTextComposition.cs
- ScriptModule.cs
- SplineKeyFrames.cs
- ComponentEditorForm.cs
- GreenMethods.cs
- PrimitiveCodeDomSerializer.cs
- FormsAuthenticationModule.cs
- SiteMapPath.cs
- StructuredCompositeActivityDesigner.cs
- EditorPart.cs
- TextParentUndoUnit.cs
- XmlCustomFormatter.cs
- BasePattern.cs
- AsymmetricKeyExchangeFormatter.cs
- Model3D.cs
- SchemaImporterExtension.cs
- DocumentPageTextView.cs
- XmlRawWriter.cs
- HttpApplication.cs
- ObjectManager.cs
- LongTypeConverter.cs
- InvalidDataException.cs
- SingleKeyFrameCollection.cs
- DeadCharTextComposition.cs
- TreeNode.cs
- UnsafeNativeMethods.cs
- XmlIlGenerator.cs
- ReadOnlyCollection.cs
- Matrix3DConverter.cs
- InfiniteTimeSpanConverter.cs