Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetControlType Method (String, String)
Collapse the table of content
Expand the table of content

ControlType.GetControlType Method (String, String)

Returns a control type object by using the provided name and friendly name. If it does not exist, creates a new control type by using the provided name and friendly name.

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

public static ControlType GetControlType(
	string name,
	string friendlyName
)

Parameters

name
Type: System.String
The name of the control type to return.
friendlyName
Type: System.String
The friendly name of the control type to create if the named control type does not exist.

Return Value

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

Community Additions

ADD
Show:
© 2015 Microsoft