Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / Diagnostics / AssertSection.cs / 1305376 / 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
- MsmqIntegrationAppDomainProtocolHandler.cs
- DependencyPropertyHelper.cs
- Italic.cs
- ToolStripGrip.cs
- SchemaTypeEmitter.cs
- SerializeAbsoluteContext.cs
- DeobfuscatingStream.cs
- TableLayoutSettingsTypeConverter.cs
- XmlSchemaFacet.cs
- OperationPerformanceCounters.cs
- RuntimeEnvironment.cs
- RectAnimationBase.cs
- SapiAttributeParser.cs
- DesignerHelpers.cs
- XmlText.cs
- StructuredTypeEmitter.cs
- ContentPosition.cs
- FormatVersion.cs
- ObjectCloneHelper.cs
- Int32Collection.cs
- DateTimeConverter.cs
- InstanceDataCollection.cs
- BoundPropertyEntry.cs
- WorkflowView.cs
- WebPartMenuStyle.cs
- Int64.cs
- Italic.cs
- PropertyManager.cs
- BaseAddressElementCollection.cs
- CapacityStreamGeometryContext.cs
- SystemWebCachingSectionGroup.cs
- InternalConfigConfigurationFactory.cs
- Marshal.cs
- XamlUtilities.cs
- TableCell.cs
- TreeNodeStyleCollectionEditor.cs
- TransformerConfigurationWizardBase.cs
- SoapObjectWriter.cs
- InputProcessorProfilesLoader.cs
- PeerApplication.cs
- UnsafeNativeMethodsPenimc.cs
- DependencyPropertyHelper.cs
- XappLauncher.cs
- CompositeScriptReference.cs
- PenContexts.cs
- TextCollapsingProperties.cs
- SqlDataSourceEnumerator.cs
- BinaryCommonClasses.cs
- WizardStepBase.cs
- WinEventQueueItem.cs
- DataShape.cs
- QuaternionAnimationBase.cs
- SrgsText.cs
- SelectorItemAutomationPeer.cs
- SqlDataSource.cs
- XmlElementAttribute.cs
- IgnoreFileBuildProvider.cs
- ConditionalExpression.cs
- ActivationArguments.cs
- PageCatalogPart.cs
- OracleString.cs
- AnimatedTypeHelpers.cs
- FunctionNode.cs
- SQLSingleStorage.cs
- PropertyFilter.cs
- RootProfilePropertySettingsCollection.cs
- FileSystemEnumerable.cs
- ValueSerializer.cs
- ListViewInsertionMark.cs
- DataObject.cs
- OwnerDrawPropertyBag.cs
- JavascriptCallbackResponseProperty.cs
- Label.cs
- WindowsScroll.cs
- RelatedEnd.cs
- ScopedMessagePartSpecification.cs
- CharacterBufferReference.cs
- FileNotFoundException.cs
- HttpRequest.cs
- DataGridViewCheckBoxColumn.cs
- EntityDataSourceSelectedEventArgs.cs
- LocalizedNameDescriptionPair.cs
- MaskedTextBoxDesigner.cs
- ObjectResult.cs
- BypassElementCollection.cs
- WebPartConnectionsCancelVerb.cs
- ClientCultureInfo.cs
- MatrixCamera.cs
- VSDExceptions.cs
- EarlyBoundInfo.cs
- XamlReaderHelper.cs
- UnsafeNativeMethodsTablet.cs
- VisualStyleElement.cs
- HttpHeaderCollection.cs
- IriParsingElement.cs
- TextRangeEditTables.cs
- ReferenceSchema.cs
- WebPartEditorOkVerb.cs
- AttributeAction.cs
- X509CertificateChain.cs