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
- TraceEventCache.cs
- XmlDeclaration.cs
- CodeNamespaceImport.cs
- HtmlPanelAdapter.cs
- IODescriptionAttribute.cs
- SiteMap.cs
- DirtyTextRange.cs
- CounterCreationDataCollection.cs
- DbExpressionVisitor.cs
- CustomTrackingQuery.cs
- OdbcConnectionPoolProviderInfo.cs
- IPPacketInformation.cs
- RuntimeConfigurationRecord.cs
- XmlElementList.cs
- RuntimeResourceSet.cs
- HealthMonitoringSection.cs
- CriticalExceptions.cs
- ProcessHostMapPath.cs
- ValueTypeFixupInfo.cs
- PageOutputColor.cs
- WebPartTransformerCollection.cs
- DeploymentExceptionMapper.cs
- VirtualStackFrame.cs
- PeerCustomResolverElement.cs
- GridViewEditEventArgs.cs
- ModelUIElement3D.cs
- ListViewItemSelectionChangedEvent.cs
- CanExecuteRoutedEventArgs.cs
- FramingDecoders.cs
- DataObjectFieldAttribute.cs
- SqlRewriteScalarSubqueries.cs
- ExpressionBuilderContext.cs
- ZipFileInfoCollection.cs
- FixedSOMContainer.cs
- Material.cs
- SecurityToken.cs
- GifBitmapDecoder.cs
- SignatureDescription.cs
- HtmlMeta.cs
- ViewKeyConstraint.cs
- KeyValueConfigurationCollection.cs
- WindowsAuthenticationEventArgs.cs
- StaticSiteMapProvider.cs
- InteropBitmapSource.cs
- CombinedGeometry.cs
- AlignmentXValidation.cs
- WindowsIdentity.cs
- HttpListenerException.cs
- EdmSchemaError.cs
- GeometryGroup.cs
- FramingEncoders.cs
- BuildProvider.cs
- HeaderedContentControl.cs
- Transform3DCollection.cs
- Queue.cs
- PropertyCollection.cs
- BamlLocalizationDictionary.cs
- PageCatalogPart.cs
- AssertSection.cs
- SingleTagSectionHandler.cs
- SvcMapFileSerializer.cs
- MetadataFile.cs
- DesignerRegion.cs
- XmlSortKey.cs
- SafeCryptoHandles.cs
- DefaultEventAttribute.cs
- NetworkAddressChange.cs
- ResponseBodyWriter.cs
- SynchronizedDispatch.cs
- SortedList.cs
- TraceContextEventArgs.cs
- GreenMethods.cs
- CallbackHandler.cs
- SerialPinChanges.cs
- TextParaClient.cs
- XmlAttributeAttribute.cs
- SqlExpressionNullability.cs
- TraceLog.cs
- BindUriHelper.cs
- StylusSystemGestureEventArgs.cs
- LinkedDataMemberFieldEditor.cs
- KeyFrames.cs
- DataSet.cs
- ChtmlLinkAdapter.cs
- MarshalByRefObject.cs
- OleTxTransactionInfo.cs
- PluralizationServiceUtil.cs
- DataServiceRequestArgs.cs
- BeginEvent.cs
- ReflectEventDescriptor.cs
- TryExpression.cs
- CatalogPartDesigner.cs
- DataBinder.cs
- TCEAdapterGenerator.cs
- NameValueConfigurationCollection.cs
- ToolStripPanelCell.cs
- ComponentCollection.cs
- AttributeCollection.cs
- ObjectTypeMapping.cs
- RelatedView.cs