Gets the native control type of this element. This can be used in tandem with the universal type obtained via GetControlType() when just the ControlType is not enough to differentiate a control.
For example, if the native technology element is HTML, this could be the tag name.
Namespace: Microsoft.VisualStudio.TestTools.UITesting
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
Syntax
'Declaration
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
Parameters
nativeControlTypeKind
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.NativeControlTypeKindThe kind of the native control type requested.
Return Value
Type: Object
If supported, the native type of the control or else null.
Implements
IUITechnologyElement.GetNativeControlType(NativeControlTypeKind)
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.