Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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)
Syntax
'Declaration
Public Shared Function GetControlType ( _
name As String, _
friendlyName As String _
) As ControlType
public static ControlType GetControlType(
string name,
string friendlyName
)
public:
static ControlType^ GetControlType(
String^ name,
String^ friendlyName
)
static member GetControlType :
name:string *
friendlyName:string -> ControlType
public static function GetControlType(
name : String,
friendlyName : String
) : ControlType
Parameters
name
Type: StringThe name of the control type to return.
friendlyName
Type: StringThe 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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.