ControlType.GetControlType Method (String)

Returns a control type object by using the provided name.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

Syntax

'Declaration
Public Shared Function GetControlType ( _
    name As String _
) As ControlType
public static ControlType GetControlType(
    string name
)
public:
static ControlType^ GetControlType(
    String^ name
)
static member GetControlType : 
        name:string -> ControlType 
public static function GetControlType(
    name : String
) : ControlType

Parameters

  • name
    Type: System.String
    The name of the control type to return.

Return Value

Type: Microsoft.VisualStudio.TestTools.UITesting.ControlType
A control type object.

.NET Framework Security

See Also

Reference

ControlType Class

GetControlType Overload

Microsoft.VisualStudio.TestTools.UITesting Namespace