返回用于给定控件的指定属性的属性描述符。
命名空间:  Microsoft.VisualStudio.TestTools.UITesting
程序集:  Microsoft.VisualStudio.TestTools.UITesting(在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)
语法
声明
Public MustOverride Function GetPropertyDescriptor ( _
    uiTestControl As UITestControl, _
    propertyName As String _
) As UITestPropertyDescriptor
public abstract UITestPropertyDescriptor GetPropertyDescriptor(
    UITestControl uiTestControl,
    string propertyName
)
public:
virtual UITestPropertyDescriptor^ GetPropertyDescriptor(
    UITestControl^ uiTestControl, 
    String^ propertyName
) abstract
abstract GetPropertyDescriptor : 
        uiTestControl:UITestControl * 
        propertyName:string -> UITestPropertyDescriptor 
public abstract function GetPropertyDescriptor(
    uiTestControl : UITestControl, 
    propertyName : String
) : UITestPropertyDescriptor
参数
- uiTestControl
 类型:Microsoft.VisualStudio.TestTools.UITesting.UITestControl
 UITestControl 。
- propertyName
 类型:System.String
 属性的名称。
返回值
类型:Microsoft.VisualStudio.TestTools.UITesting.UITestPropertyDescriptor
请求的属性描述符。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。