IUITechnologyElement.GetPropertyValue 方法

返回此元素的指定属性的值。

命名空间:  Microsoft.VisualStudio.TestTools.UITest.Extension
程序集:  Microsoft.VisualStudio.TestTools.UITest.Extension(在 Microsoft.VisualStudio.TestTools.UITest.Extension.dll 中)

语法

声明
Function GetPropertyValue ( _
    propertyName As String _
) As Object
Object GetPropertyValue(
    string propertyName
)
Object^ GetPropertyValue(
    String^ propertyName
)
abstract GetPropertyValue : 
        propertyName:string -> Object
function GetPropertyValue(
    propertyName : String
) : Object

参数

  • propertyName
    类型:String

    要检索的属性的名称。

返回值

类型:Object
属性值。

异常

异常 条件
NotSupportedException

不支持该元素属性。

.NET Framework 安全性

请参阅

参考

IUITechnologyElement 接口

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