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
- CodeDirectionExpression.cs
- AppDomain.cs
- CharacterMetrics.cs
- NumberSubstitution.cs
- JulianCalendar.cs
- Line.cs
- PropertyChangingEventArgs.cs
- EDesignUtil.cs
- ContractHandle.cs
- LogLogRecord.cs
- XmlWrappingReader.cs
- LabelEditEvent.cs
- SocketManager.cs
- Menu.cs
- SqlBulkCopyColumnMapping.cs
- WebDescriptionAttribute.cs
- IPEndPointCollection.cs
- BufferedReadStream.cs
- PtsHelper.cs
- CacheDependency.cs
- SafeCryptHandles.cs
- SoapSchemaExporter.cs
- TextElementEnumerator.cs
- IconBitmapDecoder.cs
- ExtendLockAsyncResult.cs
- HMACSHA384.cs
- CellIdBoolean.cs
- ClientSponsor.cs
- ByteRangeDownloader.cs
- SynchronousChannelMergeEnumerator.cs
- BindingNavigator.cs
- DisableDpiAwarenessAttribute.cs
- ModelUtilities.cs
- MemberDescriptor.cs
- ButtonRenderer.cs
- GACIdentityPermission.cs
- SchemaReference.cs
- SecurityProtocolCorrelationState.cs
- XmlSchemaSubstitutionGroup.cs
- FunctionDetailsReader.cs
- ComIntegrationManifestGenerator.cs
- CodeVariableReferenceExpression.cs
- ApplicationServiceManager.cs
- DataGridViewImageCell.cs
- ConsumerConnectionPoint.cs
- FullTextState.cs
- AVElementHelper.cs
- EventLogEntry.cs
- DocumentViewerConstants.cs
- DoubleAnimation.cs
- ProcessThread.cs
- HandledMouseEvent.cs
- BulletedListEventArgs.cs
- PeerNearMe.cs
- ReachDocumentPageSerializerAsync.cs
- KnowledgeBase.cs
- AQNBuilder.cs
- ProcessHost.cs
- NotImplementedException.cs
- FixedPageProcessor.cs
- SamlDelegatingWriter.cs
- BasicHttpMessageSecurity.cs
- SchemaElement.cs
- StdValidatorsAndConverters.cs
- OptionalMessageQuery.cs
- CollectionViewGroupRoot.cs
- errorpatternmatcher.cs
- IPPacketInformation.cs
- ComboBox.cs
- AlternateView.cs
- CellRelation.cs
- UpdateCompiler.cs
- ExceptionHelpers.cs
- TextRangeAdaptor.cs
- SerialErrors.cs
- ReadOnlyNameValueCollection.cs
- DrawingImage.cs
- ButtonStandardAdapter.cs
- XMLUtil.cs
- ControlType.cs
- MustUnderstandBehavior.cs
- ShaderRenderModeValidation.cs
- CellTreeNode.cs
- Visual3D.cs
- GorillaCodec.cs
- DesignerSerializationVisibilityAttribute.cs
- LocalizabilityAttribute.cs
- SqlCacheDependencyDatabase.cs
- LeafCellTreeNode.cs
- Propagator.JoinPropagator.cs
- GridSplitter.cs
- TreeViewAutomationPeer.cs
- XmlHierarchicalEnumerable.cs
- ConfigurationElementProperty.cs
- DataGridPagingPage.cs
- CreateCardRequest.cs
- SignedPkcs7.cs
- CompositeControl.cs
- EntityDesignerUtils.cs
- _BufferOffsetSize.cs