表示一个配置设置信息单元。
命名空间: Microsoft.VisualStudio.TestTools.UITest.Common
程序集: Microsoft.VisualStudio.TestTools.UITest.Common(Microsoft.VisualStudio.TestTools.UITest.Common.dll 中)
继承层次结构
System.Object
Microsoft.VisualStudio.TestTools.UITest.Common.Setting
语法
[SerializableAttribute]
public class Setting
[SerializableAttribute]
public ref class Setting
[<SerializableAttribute>]
type Setting = class end
<SerializableAttribute>
Public Class Setting
构造函数
| 名称 | 说明 | |
|---|---|---|
![]() |
Setting() | 为 XML 序列化或反序列化初始化 Setting 类的新实例。 |
![]() |
Setting(String, Object) | 使用提供的名称和值初始化 Setting 类的新实例。 |
![]() |
Setting(String, Object, Int32) | 使用提供的名称、值和警告等级初始化 Setting 类的新实例。 |
属性
| 名称 | 说明 | |
|---|---|---|
![]() |
Name | 获取或设置设置的名称。 |
![]() |
Value | 获取或设置设置的字符串形式的值。 |
![]() |
WarningLevel | 获取或设置设置的警告等级。 |
方法
| 名称 | 说明 | |
|---|---|---|
![]() |
Equals(Object) | 确定提供的对象是否等于此 Setting 对象。(替代 Object.Equals(Object)。) |
![]() |
Equals(Setting) | 确定提供的对象是否等于此 Setting 对象。 |
![]() |
Finalize() | (从 Object 继承。) |
![]() |
GetHashCode() | (替代 Object.GetHashCode()。) |
![]() |
GetType() | (从 Object 继承。) |
![]() |
MemberwiseClone() | (从 Object 继承。) |
![]() |
ToString() | (替代 Object.ToString()。) |
线程安全
此类型的任何公共静态(Visual Basic 中为 Shared)成员都是线程安全的。但不保证所有实例成员都是线程安全的。
请参阅
Microsoft.VisualStudio.TestTools.UITest.Common 命名空间
返回页首
.gif)
.jpeg)
.gif)