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
- FormView.cs
- PeerCustomResolverSettings.cs
- FixedPage.cs
- KoreanCalendar.cs
- TransactionFlowOption.cs
- TextBoxAutoCompleteSourceConverter.cs
- assertwrapper.cs
- MimeFormatExtensions.cs
- TextWriter.cs
- GridView.cs
- Fonts.cs
- HandlerWithFactory.cs
- XmlImplementation.cs
- Util.cs
- BufferAllocator.cs
- SessionEndedEventArgs.cs
- MissingMethodException.cs
- RelationshipWrapper.cs
- StylusOverProperty.cs
- SqlRemoveConstantOrderBy.cs
- MailSettingsSection.cs
- FaultCode.cs
- HostedHttpTransportManager.cs
- SrgsGrammar.cs
- XsdBuildProvider.cs
- ValidationResult.cs
- EventLogEntryCollection.cs
- EntityDesignerBuildProvider.cs
- ExpandCollapsePattern.cs
- HttpVersion.cs
- ActivityInstanceReference.cs
- SQLBinary.cs
- StringUtil.cs
- DelegatingHeader.cs
- SubMenuStyle.cs
- ConfigPathUtility.cs
- InheritablePropertyChangeInfo.cs
- RecommendedAsConfigurableAttribute.cs
- DiscardableAttribute.cs
- TextContainer.cs
- SamlSecurityTokenAuthenticator.cs
- DataControlFieldCell.cs
- TreeNodeStyle.cs
- VBIdentifierName.cs
- DBSqlParserColumnCollection.cs
- Camera.cs
- __ComObject.cs
- SecurityUtils.cs
- XmlSchemaSimpleTypeUnion.cs
- FileUtil.cs
- DummyDataSource.cs
- Logging.cs
- PerformanceCounterLib.cs
- TableChangeProcessor.cs
- PolyLineSegmentFigureLogic.cs
- DataGridViewColumnHeaderCell.cs
- StreamSecurityUpgradeInitiator.cs
- BindingExpressionBase.cs
- InternalBase.cs
- ActiveXSite.cs
- WindowsComboBox.cs
- XPathExpr.cs
- SqlWebEventProvider.cs
- ImageListStreamer.cs
- ChangeToolStripParentVerb.cs
- EventWaitHandle.cs
- CustomTypeDescriptor.cs
- TypeSource.cs
- VirtualPathUtility.cs
- ExitEventArgs.cs
- UnsafeNativeMethods.cs
- SimpleHandlerBuildProvider.cs
- PolicyLevel.cs
- SqlWebEventProvider.cs
- ScrollableControlDesigner.cs
- PackageRelationship.cs
- BitArray.cs
- RequestResizeEvent.cs
- UntrustedRecipientException.cs
- InputMethodStateTypeInfo.cs
- BinaryObjectInfo.cs
- SkinBuilder.cs
- BitmapEffectGeneralTransform.cs
- SchemaCollectionCompiler.cs
- PropertyStore.cs
- LifetimeServices.cs
- CustomErrorsSection.cs
- Inflater.cs
- TextSelection.cs
- HttpCacheVary.cs
- SchemaTableColumn.cs
- UpdateCommand.cs
- UInt16Converter.cs
- Region.cs
- Calendar.cs
- Merger.cs
- ReceiveActivityDesigner.cs
- ContainerUIElement3D.cs
- MetafileHeaderWmf.cs
- ComPlusTypeValidator.cs