共用方式為


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 命名空間