Share via


UITechnologyElement.GetNativeControlType Method

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

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

See Also

Reference

UITechnologyElement Class

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace

ControlTypeName