Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- PresentationAppDomainManager.cs
- StreamingContext.cs
- DocumentOrderComparer.cs
- QuaternionAnimationUsingKeyFrames.cs
- SerializableTypeCodeDomSerializer.cs
- SecurityAttributeGenerationHelper.cs
- Brush.cs
- UnsafeNativeMethodsPenimc.cs
- DataGridViewButtonCell.cs
- ThemeConfigurationDialog.cs
- InheritablePropertyChangeInfo.cs
- WebContext.cs
- DocumentSequence.cs
- WinFormsSecurity.cs
- HttpAsyncResult.cs
- Soap.cs
- DataPointer.cs
- SplineQuaternionKeyFrame.cs
- AnnotationService.cs
- RuleRef.cs
- CompositeActivityDesigner.cs
- EventLevel.cs
- ExpressionBuilder.cs
- ListViewInsertedEventArgs.cs
- DataContractFormatAttribute.cs
- TextTreeNode.cs
- TableStyle.cs
- RemotingConfigParser.cs
- RangeValuePattern.cs
- DWriteFactory.cs
- DescendentsWalker.cs
- StylusPoint.cs
- WmpBitmapEncoder.cs
- InputScope.cs
- StreamInfo.cs
- TdsParserHelperClasses.cs
- BinaryParser.cs
- CellConstant.cs
- Message.cs
- WindowsPrincipal.cs
- XmlRootAttribute.cs
- MemberCollection.cs
- CommandManager.cs
- TraceLevelStore.cs
- SynchronizedDispatch.cs
- DocumentReference.cs
- EntitySqlQueryBuilder.cs
- MimePart.cs
- ExceptionNotification.cs
- Dump.cs
- CustomSignedXml.cs
- FastEncoder.cs
- SettingsBase.cs
- LineMetrics.cs
- NavigationPropertyAccessor.cs
- EntityDesignerUtils.cs
- PortCache.cs
- SelectionItemProviderWrapper.cs
- CommandEventArgs.cs
- WindowsScroll.cs
- EventSinkHelperWriter.cs
- XXXInfos.cs
- UserMapPath.cs
- TextBox.cs
- TextFindEngine.cs
- SelectionProviderWrapper.cs
- BaseTemplateBuildProvider.cs
- LocatorPart.cs
- ToolBarDesigner.cs
- WSSecureConversationFeb2005.cs
- OutputCacheSettings.cs
- QueryOptionExpression.cs
- LingerOption.cs
- httpapplicationstate.cs
- XmlEntity.cs
- ManipulationLogic.cs
- XPathAncestorIterator.cs
- GridErrorDlg.cs
- WorkflowDispatchContext.cs
- PackUriHelper.cs
- XmlReflectionImporter.cs
- HttpBufferlessInputStream.cs
- ZipArchive.cs
- Focus.cs
- BufferAllocator.cs
- DbDataSourceEnumerator.cs
- Internal.cs
- EntityViewGenerationAttribute.cs
- WindowsFormsLinkLabel.cs
- BinaryObjectInfo.cs
- MatrixConverter.cs
- PropertyIDSet.cs
- Viewport2DVisual3D.cs
- ValidationHelpers.cs
- SigningCredentials.cs
- AstNode.cs
- XmlSecureResolver.cs
- ListenerAdapterBase.cs
- COM2IDispatchConverter.cs
- DataFieldConverter.cs