次の方法で共有


UITechnologyElement.GetPropertyValue メソッド

この要素の指定したプロパティの値を取得します。

名前空間:  Microsoft.VisualStudio.TestTools.UITest.Extension
アセンブリ:  Microsoft.VisualStudio.TestTools.UITest.Extension (Microsoft.VisualStudio.TestTools.UITest.Extension.dll 内)

構文

'宣言
Public MustOverride Function GetPropertyValue ( _
    propertyName As String _
) As Object
public abstract Object GetPropertyValue(
    string propertyName
)
public:
virtual Object^ GetPropertyValue(
    String^ propertyName
) abstract
abstract GetPropertyValue : 
        propertyName:string -> Object 
public abstract function GetPropertyValue(
    propertyName : String
) : Object

パラメーター

  • propertyName
    型: System.String
    取得するプロパティの名前。

戻り値

型: System.Object
プロパティ値。

実装

IUITechnologyElement.GetPropertyValue(String)

例外

例外 条件
NotSupportedException

要素プロパティはサポートされていません。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

UITechnologyElement クラス

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