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
- BufferBuilder.cs
- DataFieldConverter.cs
- DataProtection.cs
- MetadataItemSerializer.cs
- TransformedBitmap.cs
- FuncTypeConverter.cs
- XPathAncestorQuery.cs
- HttpCachePolicyElement.cs
- ColorPalette.cs
- InvalidFilterCriteriaException.cs
- HtmlInputText.cs
- WarningException.cs
- NameValuePermission.cs
- SettingsPropertyWrongTypeException.cs
- DataColumnChangeEvent.cs
- ConsumerConnectionPointCollection.cs
- DataContractAttribute.cs
- UrlMappingsSection.cs
- CodeThrowExceptionStatement.cs
- XmlNamespaceMapping.cs
- RichTextBoxAutomationPeer.cs
- CreateUserErrorEventArgs.cs
- XmlNullResolver.cs
- StringUtil.cs
- Rect3DConverter.cs
- Utils.cs
- PasswordBox.cs
- DataGridRow.cs
- ModelVisual3D.cs
- BrowserCapabilitiesCodeGenerator.cs
- MILUtilities.cs
- MatrixAnimationBase.cs
- LogStream.cs
- DbConnectionFactory.cs
- Helpers.cs
- WindowProviderWrapper.cs
- TextPatternIdentifiers.cs
- EventListenerClientSide.cs
- X509Utils.cs
- ConfigurationStrings.cs
- DataServiceHostFactory.cs
- SelectionPatternIdentifiers.cs
- WebConfigurationHost.cs
- DesignOnlyAttribute.cs
- TypedTableBase.cs
- XmlArrayAttribute.cs
- DbMetaDataCollectionNames.cs
- DataView.cs
- PagesSection.cs
- FtpRequestCacheValidator.cs
- FileUpload.cs
- DefaultHttpHandler.cs
- XmlSignificantWhitespace.cs
- XmlMtomReader.cs
- SecureEnvironment.cs
- XmlSchemaSubstitutionGroup.cs
- StylusShape.cs
- ProcessThread.cs
- PassportAuthenticationEventArgs.cs
- TextWriterTraceListener.cs
- MobileControlsSectionHelper.cs
- TableLayoutPanelResizeGlyph.cs
- ConnectionManagementSection.cs
- Popup.cs
- DbMetaDataFactory.cs
- Size3D.cs
- StorageModelBuildProvider.cs
- PasswordTextNavigator.cs
- SafeSecurityHandles.cs
- UnsafeNativeMethods.cs
- DesignColumn.cs
- BitmapFrameDecode.cs
- NameValueSectionHandler.cs
- OuterGlowBitmapEffect.cs
- PrintingPermissionAttribute.cs
- serverconfig.cs
- SqlDataSourceQueryEditorForm.cs
- ListParagraph.cs
- NopReturnReader.cs
- RoleServiceManager.cs
- TextTabProperties.cs
- VerificationAttribute.cs
- AppendHelper.cs
- COM2ColorConverter.cs
- sqlstateclientmanager.cs
- cache.cs
- KerberosTicketHashIdentifierClause.cs
- EditingScope.cs
- AxHost.cs
- ListControlActionList.cs
- StrokeCollectionDefaultValueFactory.cs
- Operator.cs
- DragDropManager.cs
- EasingQuaternionKeyFrame.cs
- Column.cs
- WindowShowOrOpenTracker.cs
- XPathItem.cs
- SqlFacetAttribute.cs
- HttpCachePolicy.cs
- HScrollProperties.cs