ControlType Implicit Conversion (String to ControlType)

Provides an implicit operator for comparing the provided name with a control type object.

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

Syntax

'Declaration
Public Shared Widening Operator CType ( _
    name As String _
) As ControlType
public static implicit operator ControlType (
    string name
)
static implicit operator ControlType^ (
    String^ name
)
F# does not support the declaration of new casting operators.
JScript does not support the declaration of new casting operators.

Parameters

  • name
    Type: String

    A control type name to compare with the Name property.

Return Value

Type: Microsoft.VisualStudio.TestTools.UITesting.ControlType
true if the provided name is equal to the Name property of this control object; otherwise, false.

.NET Framework Security

See Also

Reference

ControlType Class

Microsoft.VisualStudio.TestTools.UITesting Namespace

Name