Udostępnij za pośrednictwem


Metoda UITechnologyElementProxy.GetNativeControlType —

Pobiera typu macierzystego formantu tego elementu.To może służyć w parze z typem universal uzyskanych za pośrednictwem GetControlType(), gdy tylko ControlType nie wystarcza do rozróżniania formantu.

Na przykład jeśli element macierzysty technologii HTML, to może być nazwa tagu.

Przestrzeń nazw:  Microsoft.VisualStudio.TestTools.UITesting
Zestaw:  Microsoft.VisualStudio.TestTools.UITesting (w Microsoft.VisualStudio.TestTools.UITesting.dll)

Składnia

'Deklaracja
Public Overrides Function GetNativeControlType ( _
    nativeControlTypeKind As NativeControlTypeKind _
) As Object
public override Object GetNativeControlType(
    NativeControlTypeKind nativeControlTypeKind
)
public:
virtual Object^ GetNativeControlType(
    NativeControlTypeKind nativeControlTypeKind
) override
abstract GetNativeControlType : 
        nativeControlTypeKind:NativeControlTypeKind -> Object  
override GetNativeControlType : 
        nativeControlTypeKind:NativeControlTypeKind -> Object
public override function GetNativeControlType(
    nativeControlTypeKind : NativeControlTypeKind
) : Object

Parametry

Wartość zwracana

Typ: Object
Jeśli obsługiwany, rodzimy typ formantu albo wartość null.

Implementuje

IUITechnologyElement.GetNativeControlType(NativeControlTypeKind)

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

UITechnologyElementProxy Klasa

Przestrzeń nazw Microsoft.VisualStudio.TestTools.UITesting