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
nativeControlTypeKind
Typ: Microsoft.VisualStudio.TestTools.UITest.Extension.NativeControlTypeKindTyp żądanego typu macierzystego formantu.
Wartość zwracana
Typ: Object
Jeśli obsługiwany, rodzimy typ formantu albo wartość null.
Implementuje
IUITechnologyElement.GetNativeControlType(NativeControlTypeKind)
Zabezpieczenia programu .NET Framework
- Pełne zaufanie do bezpośredniego wywołującego. Tego elementu członkowskiego nie można używać w kodzie częściowo zaufanym. Aby uzyskać więcej informacji, zobacz Używanie bibliotek pochodzących z częściowo zaufanego kodu.