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
參數
uiTestControl
類型:Microsoft.VisualStudio.TestTools.UITesting.UITestControl
propertyName
類型:String屬性的名稱。
傳回值
類型:Microsoft.VisualStudio.TestTools.UITesting.UITestPropertyDescriptor
要求的屬性描述元。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。
請參閱
參考
Microsoft.VisualStudio.TestTools.UITesting 命名空間