共用方式為


UITestPropertyProvider.GetPropertyDescriptor 方法

針對所指定控制項的所指定屬性傳回屬性描述元。

命名空間:  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

參數

傳回值

型別:Microsoft.VisualStudio.TestTools.UITesting.UITestPropertyDescriptor
要求的屬性描述元。

.NET Framework 安全性

請參閱

參考

UITestPropertyProvider 類別

Microsoft.VisualStudio.TestTools.UITesting 命名空間

UITestPropertyDescriptor