Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- PropertyFilterAttribute.cs
- RuntimeWrappedException.cs
- SmiXetterAccessMap.cs
- Command.cs
- TreeIterator.cs
- JulianCalendar.cs
- InputChannel.cs
- MenuBindingsEditor.cs
- AsymmetricKeyExchangeDeformatter.cs
- XmlSchemaAnnotated.cs
- Rotation3DAnimationUsingKeyFrames.cs
- WebPartEditorOkVerb.cs
- Triplet.cs
- BasicKeyConstraint.cs
- GradientBrush.cs
- ServiceXNameTypeConverter.cs
- XmlEnumAttribute.cs
- WebPartDescription.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- CallbackDebugElement.cs
- SecurityKeyIdentifierClause.cs
- ZipIOBlockManager.cs
- EntityClientCacheEntry.cs
- UIntPtr.cs
- ConnectionManagementSection.cs
- CellTreeNodeVisitors.cs
- PenContexts.cs
- LocalClientSecuritySettings.cs
- DrawingContext.cs
- XmlSerializerSection.cs
- DocumentPageView.cs
- PtsContext.cs
- EmbossBitmapEffect.cs
- DataGridItemAttachedStorage.cs
- OrderedDictionaryStateHelper.cs
- RectangleGeometry.cs
- TableRow.cs
- PageTheme.cs
- SafeFileMappingHandle.cs
- HybridDictionary.cs
- ConsoleKeyInfo.cs
- LicenseProviderAttribute.cs
- GlyphRunDrawing.cs
- SettingsBase.cs
- AssertSection.cs
- OrderByExpression.cs
- Empty.cs
- Emitter.cs
- ManipulationDevice.cs
- PeerPresenceInfo.cs
- _HelperAsyncResults.cs
- ProvidePropertyAttribute.cs
- SecurityHelper.cs
- SequenceDesigner.cs
- CustomAttribute.cs
- FormsAuthenticationTicket.cs
- NumberAction.cs
- PersonalizableTypeEntry.cs
- TextBoxBase.cs
- CorrelationKey.cs
- PageThemeCodeDomTreeGenerator.cs
- UrlPath.cs
- CodeIndexerExpression.cs
- RestHandlerFactory.cs
- HtmlInputPassword.cs
- ResetableIterator.cs
- Util.cs
- InvokeProviderWrapper.cs
- Object.cs
- CrossContextChannel.cs
- ColorConvertedBitmap.cs
- ISessionStateStore.cs
- CompModHelpers.cs
- WebPartCollection.cs
- RangeEnumerable.cs
- ParseChildrenAsPropertiesAttribute.cs
- StylusPoint.cs
- WebServiceData.cs
- BreakRecordTable.cs
- TemplateControl.cs
- FixedLineResult.cs
- Pair.cs
- FormatException.cs
- DeploymentSectionCache.cs
- StreamSecurityUpgradeAcceptorAsyncResult.cs
- Enum.cs
- EventlogProvider.cs
- DataGridViewDataConnection.cs
- PreservationFileReader.cs
- MetadataProperty.cs
- SplineQuaternionKeyFrame.cs
- PostBackTrigger.cs
- SatelliteContractVersionAttribute.cs
- ControlTemplate.cs
- WebPageTraceListener.cs
- isolationinterop.cs
- FileLevelControlBuilderAttribute.cs
- XmlCharCheckingWriter.cs
- DocumentStream.cs
- CurrentChangingEventArgs.cs