e79aa3c0ed
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
46 lines
1.6 KiB
C#
46 lines
1.6 KiB
C#
//------------------------------------------------------------------------------
|
|
// <copyright file="AssertSection.cs" company="Microsoft Corporation">
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// </copyright>
|
|
//------------------------------------------------------------------------------
|
|
|
|
#if CONFIGURATION_DEP
|
|
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;
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
#endif
|