Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the native control type of this element.
Namespace: Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly: Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)
Syntax
'Declaration
Public MustOverride Function GetNativeControlType ( _
nativeControlTypeKind As NativeControlTypeKind _
) As Object
public abstract Object GetNativeControlType(
NativeControlTypeKind nativeControlTypeKind
)
public:
virtual Object^ GetNativeControlType(
NativeControlTypeKind nativeControlTypeKind
) abstract
abstract GetNativeControlType :
nativeControlTypeKind:NativeControlTypeKind -> Object
public abstract function GetNativeControlType(
nativeControlTypeKind : NativeControlTypeKind
) : Object
Parameters
- nativeControlTypeKind
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.NativeControlTypeKind
A member of the NativeControlTypeKind enumeration.
Return Value
Type: System.Object
If supported, the native type of the control; otherwise, nulla null reference (Nothing in Visual Basic).
Implements
IUITechnologyElement.GetNativeControlType(NativeControlTypeKind)
Remarks
This GetNativeControlType method can be used in tandem with the universal type that is obtained by using the ControlTypeName when just the ControlTypeName is not enough to differentiate a control. For example, if the native technology is HTML, this method could return the tag name.
.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.