ControlType.GetControlType 方法 (String)

使用提供的名稱,傳回控制項型別物件。

命名空間:  Microsoft.VisualStudio.TestTools.UITesting
組件:  Microsoft.VisualStudio.TestTools.UITest.Extension (在 Microsoft.VisualStudio.TestTools.UITest.Extension.dll 中)

語法

'宣告
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

參數

  • name
    型別:System.String
    要傳回的控制項型別名稱。

傳回值

型別:Microsoft.VisualStudio.TestTools.UITesting.ControlType
控制項型別物件。

.NET Framework 安全性

請參閱

參考

ControlType 類別

GetControlType 多載

Microsoft.VisualStudio.TestTools.UITesting 命名空間