共用方式為


IQueryCondition.GetPropertyValue 方法

這個 API 支援 .NET Framework 基礎結構,但您不可以直接在程式碼中使用它。

如果指定的屬性出現在這個查詢條件中,則會傳回它的值。

命名空間:  Microsoft.VisualStudio.TestTools.UITest.Extension
組件:  Microsoft.VisualStudio.TestTools.UITest.Extension (在 Microsoft.VisualStudio.TestTools.UITest.Extension.dll 中)

語法

'宣告
Function GetPropertyValue ( _
    nameOfProperty As String _
) As Object
Object GetPropertyValue(
    string nameOfProperty
)
Object^ GetPropertyValue(
    String^ nameOfProperty
)
abstract GetPropertyValue : 
        nameOfProperty:string -> Object 
function GetPropertyValue(
    nameOfProperty : String
) : Object

參數

傳回值

型別:System.Object
屬性的值,若此值不存在則為 nullnull 參考 (即 Visual Basic 中的 Nothing)。

.NET Framework 安全性

請參閱

參考

IQueryCondition 介面

Microsoft.VisualStudio.TestTools.UITest.Extension 命名空間