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
- RtfToXamlReader.cs
- TextDocumentView.cs
- RuntimeHandles.cs
- MenuItemStyle.cs
- IndexedString.cs
- XsltSettings.cs
- Html32TextWriter.cs
- EntityDataSourceChangingEventArgs.cs
- AdjustableArrowCap.cs
- VariableBinder.cs
- ConfigurationErrorsException.cs
- URI.cs
- WebScriptMetadataMessageEncodingBindingElement.cs
- __ConsoleStream.cs
- SQLByteStorage.cs
- StyleCollection.cs
- Assembly.cs
- MediaPlayerState.cs
- ScrollChangedEventArgs.cs
- StrokeNode.cs
- ProfilePropertySettings.cs
- ApplyTemplatesAction.cs
- HttpGetProtocolImporter.cs
- UpdateEventArgs.cs
- NullableIntAverageAggregationOperator.cs
- OutputCacheModule.cs
- CodeDirectiveCollection.cs
- PanelStyle.cs
- CodeAccessSecurityEngine.cs
- ExtentKey.cs
- VirtualPath.cs
- DataGridViewTextBoxEditingControl.cs
- RawStylusInput.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- AuthenticateEventArgs.cs
- httpstaticobjectscollection.cs
- FontUnitConverter.cs
- CheckBoxBaseAdapter.cs
- DispatcherHookEventArgs.cs
- ListControl.cs
- ParameterElement.cs
- XhtmlCssHandler.cs
- ConsoleCancelEventArgs.cs
- GenericsInstances.cs
- SessionStateSection.cs
- XPathMultyIterator.cs
- DataGridViewRowPrePaintEventArgs.cs
- DataQuery.cs
- GraphicsPathIterator.cs
- EntityDataSourceWrapper.cs
- SiteMembershipCondition.cs
- Latin1Encoding.cs
- _TLSstream.cs
- XmlTextWriter.cs
- GenericTextProperties.cs
- CryptoConfig.cs
- _HeaderInfoTable.cs
- CustomWebEventKey.cs
- CompositeCollection.cs
- ColumnClickEvent.cs
- Grid.cs
- XmlReaderDelegator.cs
- WebSysDescriptionAttribute.cs
- DataGridTablesFactory.cs
- ListViewDataItem.cs
- RuleSetDialog.Designer.cs
- LinqDataSourceSelectEventArgs.cs
- XmlObjectSerializerWriteContextComplex.cs
- GridViewCommandEventArgs.cs
- TreeViewImageGenerator.cs
- SafeCryptContextHandle.cs
- assemblycache.cs
- IdlingCommunicationPool.cs
- InheritablePropertyChangeInfo.cs
- TreeNodeStyle.cs
- MetadataItem.cs
- ThemeConfigurationDialog.cs
- EventsTab.cs
- SplitContainer.cs
- StylusPointPropertyInfoDefaults.cs
- NavigationCommands.cs
- LineGeometry.cs
- SchemaManager.cs
- Effect.cs
- HtmlInputPassword.cs
- MobileControlsSection.cs
- EncryptRequest.cs
- ProtocolElement.cs
- XPathConvert.cs
- FamilyTypefaceCollection.cs
- ParameterToken.cs
- ResourceDescriptionAttribute.cs
- SmtpNtlmAuthenticationModule.cs
- HotSpotCollection.cs
- ChameleonKey.cs
- RegexCharClass.cs
- brushes.cs
- CachedPathData.cs
- XmlIgnoreAttribute.cs
- ModelProperty.cs