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
- nativeControlTypeKind
Typ: Microsoft.VisualStudio.TestTools.UITest.Extension.NativeControlTypeKind
Rodzaj żądanego typu macierzystego formantu.
Wartość zwracana
Typ: System.Object
Jeśli obsługiwany, macierzysty typ formantu, albo też 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 Przy użyciu bibliotek z częściowo zaufanego kodu..