UITechnologyElementProxy.GetNativeControlType Method

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

Return Value

Type: Object
If supported, the native type of the control or else null.

Implements

IUITechnologyElement.GetNativeControlType(NativeControlTypeKind)

.NET Framework Security

See Also

Reference

UITechnologyElementProxy Class

Microsoft.VisualStudio.TestTools.UITesting Namespace