提供用于实现自定义支持的抽象基类,以便为用户界面 (UI) 测试控件提供属性。
继承层次结构
System.Object
  Microsoft.VisualStudio.TestTools.UITesting.UITestPropertyProvider
命名空间:  Microsoft.VisualStudio.TestTools.UITesting
程序集:  Microsoft.VisualStudio.TestTools.UITesting(在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)
语法
声明
Public MustInherit Class UITestPropertyProvider
public abstract class UITestPropertyProvider
public ref class UITestPropertyProvider abstract
[<AbstractClass>]
type UITestPropertyProvider =  class end
public abstract class UITestPropertyProvider
UITestPropertyProvider 类型公开以下成员。
构造函数
| 名称 | 说明 | |
|---|---|---|
| .gif) | UITestPropertyProvider | 基础结构。初始化 UITestPropertyProvider 类的新实例。 | 
页首
属性
| 名称 | 说明 | |
|---|---|---|
| .gif) | IsGetProperty | 基础结构。获取或设置一个值,该值指示对关联属性的当前调用是 get 调用还是 set 调用。 | 
| .gif) | PropertyName | 基础结构。获取或设置关联属性的名称。 | 
| .gif) | UIControl | 获取或设置关联的用户界面测试控件。 | 
页首
方法
| 名称 | 说明 | |
|---|---|---|
| .gif) | Equals | 确定指定的 Object 是否等于当前的 Object。 (继承自 Object。) | 
| .gif) | Finalize | 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。) | 
| .gif) | GetControlSupportLevel | 在派生类中重写时,返回一个值,该值指示此提供程序对给定控件的支持级别。 | 
| .gif) | GetHashCode | 用作特定类型的哈希函数。 (继承自 Object。) | 
| .gif) | GetPredefinedSearchProperties | 在派生类中重写时,获取包含为关联控件预定义的搜索属性的字符串数组。 | 
| .gif) | GetPropertyDescriptor | 返回用于给定控件的指定属性的属性描述符。 | 
| .gif) | GetPropertyForAction | 当在派生类中重写时,返回给定控件的指定操作所使用的属性名称。 | 
| .gif) | GetPropertyForControlState | 当在派生类中重写时,返回一个属性名称数组和一个状态值数组,其中状态值数组由给定控件的所有与指定控件状态值匹配的状态值组成。 | 
| .gif) | GetPropertyNames | 在派生类中重写后,返回给定控件的属性名称的集合。 | 
| .gif) | GetPropertyNamesClassType | 在派生类中重写时,为向给定控件提供属性名称的类返回 Type。 | 
| .gif) | GetPropertyValue | 在派生类中重写时,从给定控件返回指定属性的值。 | 
| .gif) | GetSpecializedClass | 在派生类中重写时,为给定测试控件返回相应专用控件(用于 HTML、Windows Forms 或 Windows Presentation Foundation)的 Type。 | 
| .gif) | GetType | 获取当前实例的 Type。 (继承自 Object。) | 
| .gif) | MemberwiseClone | 创建当前 Object 的浅表副本。 (继承自 Object。) | 
| .gif) | SetPropertyValue | 在派生类中重写时,用提供的值设置给定控件的指定属性。 | 
| .gif) | ToString | 返回表示当前对象的字符串。 (继承自 Object。) | 
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。