Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ASCIIEncoding.cs
- DataAccessor.cs
- DataGridItemCollection.cs
- FloaterParagraph.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- MetadataArtifactLoaderResource.cs
- MissingSatelliteAssemblyException.cs
- DrawingImage.cs
- UnescapedXmlDiagnosticData.cs
- WebPartsPersonalization.cs
- XslNumber.cs
- ProfileProvider.cs
- EventTrigger.cs
- ToolboxItemImageConverter.cs
- ClientTargetSection.cs
- SessionStateItemCollection.cs
- SoapProtocolReflector.cs
- ValidationSummary.cs
- ThicknessAnimationBase.cs
- TcpConnectionPool.cs
- CapacityStreamGeometryContext.cs
- UIHelper.cs
- XmlSchemaDatatype.cs
- XPathDocument.cs
- DSACryptoServiceProvider.cs
- BamlVersionHeader.cs
- Command.cs
- _WebProxyDataBuilder.cs
- EditorBrowsableAttribute.cs
- KnownTypesHelper.cs
- SerialReceived.cs
- CookieProtection.cs
- Matrix3D.cs
- Equal.cs
- InputLangChangeRequestEvent.cs
- SqlAliasesReferenced.cs
- Compiler.cs
- ConnectionManagementSection.cs
- MouseActionConverter.cs
- RtfToXamlReader.cs
- ReachFixedPageSerializer.cs
- ActivationServices.cs
- CookieProtection.cs
- LoginView.cs
- EncodingInfo.cs
- CanonicalFormWriter.cs
- DbConnectionOptions.cs
- CompiledQueryCacheKey.cs
- StringDictionary.cs
- UIntPtr.cs
- MarkerProperties.cs
- SortDescription.cs
- ObjectNotFoundException.cs
- baseaxisquery.cs
- ContainerVisual.cs
- EncodingDataItem.cs
- PropertyValueChangedEvent.cs
- DataGridHeaderBorder.cs
- LocalFileSettingsProvider.cs
- PreservationFileReader.cs
- ActivityDefaults.cs
- SHA1CryptoServiceProvider.cs
- OleDbDataReader.cs
- DataViewListener.cs
- Crypto.cs
- ValidationPropertyAttribute.cs
- AccessDataSourceWizardForm.cs
- KeyboardDevice.cs
- RepeaterDesigner.cs
- VarInfo.cs
- ToolStripSystemRenderer.cs
- DeferredTextReference.cs
- DefaultValueAttribute.cs
- Light.cs
- ServicesUtilities.cs
- AuthenticationModuleElement.cs
- EntityUtil.cs
- RoleGroup.cs
- DataServiceProviderWrapper.cs
- Marshal.cs
- Help.cs
- DiscoveryMessageProperty.cs
- OverlappedAsyncResult.cs
- InvalidPropValue.cs
- XmlReflectionImporter.cs
- SessionEndingEventArgs.cs
- NotifyCollectionChangedEventArgs.cs
- SymbolType.cs
- ResetableIterator.cs
- ValidatorCollection.cs
- NameNode.cs
- SettingsAttributes.cs
- FilterQuery.cs
- ListViewSortEventArgs.cs
- SystemWebCachingSectionGroup.cs
- StringConcat.cs
- SingleKeyFrameCollection.cs
- TransactionBridge.cs
- ConfigXmlElement.cs
- XhtmlBasicValidatorAdapter.cs