共用方式為


ExecutionUtilities.DebugTarget 方法

要求對測試執行偵錯作業。

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

語法

'宣告
Public Shared Function DebugTarget ( _
    sink As IResultSink, _
    runId As Guid, _
    targetInfo As DebugTargetInfo, _
    timeout As TimeSpan _
) As DebugOperationResult
public static DebugOperationResult DebugTarget(
    IResultSink sink,
    Guid runId,
    DebugTargetInfo targetInfo,
    TimeSpan timeout
)
public:
static DebugOperationResult^ DebugTarget(
    IResultSink^ sink, 
    Guid runId, 
    DebugTargetInfo^ targetInfo, 
    TimeSpan timeout
)
static member DebugTarget : 
        sink:IResultSink * 
        runId:Guid * 
        targetInfo:DebugTargetInfo * 
        timeout:TimeSpan -> DebugOperationResult 
public static function DebugTarget(
    sink : IResultSink, 
    runId : Guid, 
    targetInfo : DebugTargetInfo, 
    timeout : TimeSpan
) : DebugOperationResult

參數

  • runId
    型別:System.Guid
    測試回合的 GUID 識別項。

傳回值

型別:Microsoft.VisualStudio.TestTools.Common.DebugOperationResult
DebugOperationResult 物件,包含偵錯作業的結果。

.NET Framework 安全性

請參閱

參考

ExecutionUtilities 類別

Microsoft.VisualStudio.TestTools.Execution 命名空間

IResultSink

DebugTargetInfo

DebugOperationResult