IUITechnologyElement.GetNativeControlType 方法

返回此元素的本机控件类型。

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

语法

声明
Function GetNativeControlType ( _
    nativeControlTypeKind As NativeControlTypeKind _
) As Object
Object GetNativeControlType(
    NativeControlTypeKind nativeControlTypeKind
)
Object^ GetNativeControlType(
    NativeControlTypeKind nativeControlTypeKind
)
abstract GetNativeControlType : 
        nativeControlTypeKind:NativeControlTypeKind -> Object
function GetNativeControlType(
    nativeControlTypeKind : NativeControlTypeKind
) : Object

参数

返回值

类型:Object
如果受支持,则为控件的本机类型;否则为 nullnull 引用(在 Visual Basic 中为 Nothing)。

.NET Framework 安全性

请参阅

参考

IUITechnologyElement 接口

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