共用方式為


KnownExecutionAppKeys.ControllerName 欄位

這個 API 支援 .NET Framework 基礎結構,但您不可以直接在程式碼中使用它。

傳回 "ControllerName"。這個欄位是唯讀的。

命名空間:  Microsoft.VisualStudio.TestTools.Common
組件:  Microsoft.VisualStudio.QualityTools.Common (在 Microsoft.VisualStudio.QualityTools.Common.dll 中)

語法

'宣告
Public Shared ReadOnly ControllerName As String
public static readonly string ControllerName
public:
static initonly String^ ControllerName
static val ControllerName: string
public static final var ControllerName : String

.NET Framework 安全性

請參閱

參考

KnownExecutionAppKeys 類別

Microsoft.VisualStudio.TestTools.Common 命名空間