Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / Diagnostics / AssertSection.cs / 1305376 / 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
- EditCommandColumn.cs
- IsolatedStorageException.cs
- RectAnimationClockResource.cs
- SystemIPv4InterfaceProperties.cs
- XmlSiteMapProvider.cs
- HttpModuleAction.cs
- Completion.cs
- _ShellExpression.cs
- NavigatingCancelEventArgs.cs
- Composition.cs
- ComplexTypeEmitter.cs
- BuildProvider.cs
- IisHelper.cs
- OneOfElement.cs
- FontSource.cs
- Point4D.cs
- UInt64.cs
- MbpInfo.cs
- InitializationEventAttribute.cs
- NullReferenceException.cs
- AnimationStorage.cs
- ViewgenGatekeeper.cs
- BoundsDrawingContextWalker.cs
- Msmq4SubqueuePoisonHandler.cs
- StyleBamlRecordReader.cs
- ContextMenuStrip.cs
- DataGridItem.cs
- _UncName.cs
- WebProxyScriptElement.cs
- hresults.cs
- Span.cs
- WindowsAltTab.cs
- Guid.cs
- AppDomainUnloadedException.cs
- RsaSecurityTokenAuthenticator.cs
- ExtendedPropertyDescriptor.cs
- MeasurementDCInfo.cs
- DBConnection.cs
- SchemaMapping.cs
- ControlUtil.cs
- DynamicValueConverter.cs
- GeneralTransform2DTo3D.cs
- MessagePropertyFilter.cs
- PathFigureCollection.cs
- ScrollProviderWrapper.cs
- errorpatternmatcher.cs
- PrePostDescendentsWalker.cs
- DateTimeFormatInfo.cs
- Point3DAnimationUsingKeyFrames.cs
- OleDbEnumerator.cs
- PrintDocument.cs
- TypeForwardedToAttribute.cs
- Parsers.cs
- AppModelKnownContentFactory.cs
- CacheOutputQuery.cs
- LexicalChunk.cs
- XmlDictionaryReaderQuotas.cs
- AuthenticationServiceManager.cs
- SQLSingle.cs
- CreateUserErrorEventArgs.cs
- RepeatInfo.cs
- EncoderParameter.cs
- WindowsSecurityTokenAuthenticator.cs
- ProgressBarRenderer.cs
- ZipIOLocalFileBlock.cs
- XComponentModel.cs
- CodeSnippetStatement.cs
- CompositeFontInfo.cs
- WindowsListViewGroupSubsetLink.cs
- EditorPartChrome.cs
- Gdiplus.cs
- webeventbuffer.cs
- StringCollectionMarkupSerializer.cs
- DocumentPageTextView.cs
- ListViewInsertedEventArgs.cs
- RawStylusInputCustomData.cs
- XmlSchemaAttributeGroupRef.cs
- brushes.cs
- TreeView.cs
- Accessible.cs
- DataRecordObjectView.cs
- AliasedSlot.cs
- Crypto.cs
- OneOfConst.cs
- WorkflowQueuingService.cs
- SiteOfOriginPart.cs
- EmptyReadOnlyDictionaryInternal.cs
- __Filters.cs
- NameValueConfigurationCollection.cs
- EntityContainerEmitter.cs
- LeaseManager.cs
- AutomationPeer.cs
- MessageQueueEnumerator.cs
- TextBox.cs
- TransactionFlowElement.cs
- Opcode.cs
- GlyphsSerializer.cs
- Parser.cs
- ReturnEventArgs.cs
- ServiceDiscoveryElement.cs