The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UITechnologyElementProxy.GetNativeControlType Method (NativeControlTypeKind)


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)

public override object GetNativeControlType(
	NativeControlTypeKind nativeControlTypeKind


Type: Microsoft.VisualStudio.TestTools.UITest.Extension.NativeControlTypeKind

The kind of the native control type requested.

Return Value

Type: System.Object

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

Return to top