Udostępnij za pośrednictwem


Metoda UITechnologyElementProxy.GetNativeControlType —

Pobiera typ macierzysty formantu tego elementu.To może służyć zespołowo typu universal uzyskanych za pośrednictwem GetControlType(), gdy tylko ControlType nie wystarcza do rozróżniania formantu.

Na przykład jeśli element macierzysty technologii jest HTML, to 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: System.Object
Jeśli obsługiwany, macierzysty typ formantu, albo też null.

Implementuje

IUITechnologyElement.GetNativeControlType(NativeControlTypeKind)

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

UITechnologyElementProxy Klasa

Przestrzeń nazw Microsoft.VisualStudio.TestTools.UITesting