IQueryCondition.GetPropertyValue 方法
這個應用程式開發介面支援 .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
參數
nameOfProperty
類型:String屬性的名稱。
傳回值
類型:Object
屬性的值,若此值不存在則為 nullnull 參考 (即 Visual Basic 中的 Nothing)。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。