共用方式為


UITestPropertyProvider.GetPropertyDescriptor 方法

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

命名空間:  Microsoft.VisualStudio.TestTools.UITesting
組件:   Microsoft.VisualStudio.TestTools.WindowsStore.UITesting (在 Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll 中)
  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

參數

  • propertyName
    類型:String

    屬性的名稱。

傳回值

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

.NET Framework 安全性

請參閱

參考

UITestPropertyProvider 類別

Microsoft.VisualStudio.TestTools.UITesting 命名空間

UITestPropertyDescriptor

其他資源

啟用控制項的自動程式碼 UI 測試功能