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
- DataBindingCollection.cs
- SimpleWebHandlerParser.cs
- DependencyProperty.cs
- SafeCancelMibChangeNotify.cs
- mediaeventargs.cs
- QuaternionRotation3D.cs
- RSAProtectedConfigurationProvider.cs
- MimeMapping.cs
- HtmlInputCheckBox.cs
- ButtonColumn.cs
- QueryStringParameter.cs
- HMACMD5.cs
- DiscoveryDocumentReference.cs
- XmlNamespaceDeclarationsAttribute.cs
- FlowDocumentPaginator.cs
- ToolboxItemCollection.cs
- SqlFlattener.cs
- AssemblyAttributesGoHere.cs
- ImageFormat.cs
- EntityViewContainer.cs
- _TransmitFileOverlappedAsyncResult.cs
- PointLight.cs
- UniqueContractNameValidationBehavior.cs
- BStrWrapper.cs
- DescendantBaseQuery.cs
- PackWebRequest.cs
- WithParamAction.cs
- DataSet.cs
- DebugView.cs
- VisualStateManager.cs
- XMLSchema.cs
- EndpointBehaviorElementCollection.cs
- DataBindingCollectionConverter.cs
- TreePrinter.cs
- RemotingServices.cs
- XsdValidatingReader.cs
- WebDescriptionAttribute.cs
- ScrollItemProviderWrapper.cs
- OdbcErrorCollection.cs
- InstanceCreationEditor.cs
- RemotingConfiguration.cs
- ModuleBuilder.cs
- CheckedListBox.cs
- ScriptServiceAttribute.cs
- HostingEnvironmentException.cs
- NativeWindow.cs
- BamlBinaryReader.cs
- ProviderUtil.cs
- PreservationFileReader.cs
- NonSerializedAttribute.cs
- MemberCollection.cs
- MarkerProperties.cs
- Activation.cs
- GridViewUpdateEventArgs.cs
- SqlCacheDependency.cs
- ReadOnlyCollectionBuilder.cs
- CommonDialog.cs
- XmlDictionary.cs
- SettingsAttributes.cs
- TraceListener.cs
- XamlGridLengthSerializer.cs
- TimelineGroup.cs
- CompilerTypeWithParams.cs
- StringConverter.cs
- FileDialogCustomPlace.cs
- xdrvalidator.cs
- OptionalColumn.cs
- GroupStyle.cs
- CodeGenerator.cs
- RelOps.cs
- Zone.cs
- CompletionBookmark.cs
- PageSetupDialog.cs
- Brush.cs
- keycontainerpermission.cs
- TransactionContext.cs
- RegexCompiler.cs
- XmlCodeExporter.cs
- ResourcePermissionBaseEntry.cs
- LogRecordSequence.cs
- ToolStripSplitButton.cs
- TextShapeableCharacters.cs
- _DisconnectOverlappedAsyncResult.cs
- odbcmetadatacolumnnames.cs
- TemplateColumn.cs
- Int16Animation.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- SemanticTag.cs
- DataGridViewComboBoxCell.cs
- CodeTypeConstructor.cs
- ObjectContextServiceProvider.cs
- NumericUpDownAcceleration.cs
- MimeTypePropertyAttribute.cs
- ListenerChannelContext.cs
- HashAlgorithm.cs
- RegisteredExpandoAttribute.cs
- PrimitiveCodeDomSerializer.cs
- MsmqIntegrationBinding.cs
- CultureMapper.cs
- CreateInstanceBinder.cs