共用方式為


ISharedStepReference 介面

這個介面是用來呼叫測試案例中的共用步驟集。

命名空間:  Microsoft.TeamFoundation.TestManagement.Client
組件:  Microsoft.TeamFoundation.TestManagement.Client (在 Microsoft.TeamFoundation.TestManagement.Client.dll 中)

語法

'宣告
Public Interface ISharedStepReference _
    Inherits ITestAction, INotifyPropertyChanged
public interface ISharedStepReference : ITestAction, 
    INotifyPropertyChanged
public interface class ISharedStepReference : ITestAction, 
    INotifyPropertyChanged
type ISharedStepReference =  
    interface 
        interface ITestAction 
        interface INotifyPropertyChanged 
    end
public interface ISharedStepReference extends ITestAction, INotifyPropertyChanged

ISharedStepReference 類型會公開下列成員。

屬性

  名稱 描述
公用屬性 Id 取得這個測試動作的唯一識別碼。 (繼承自 ITestAction)。
公用屬性 Owner 取得表示這個測試動作之擁有者的測試基底。 (繼承自 ITestAction)。
公用屬性 Parent 取得這個測試動作的父測試動作群組。 (繼承自 ITestAction)。
公用屬性 SharedStepId 取得或設定相關聯共用步驟的工作項目 ID。

回頁首

方法

  名稱 描述
公用方法 CopyToNewOwner 對新擁有者執行這個動作的深層複製。 (繼承自 ITestAction)。
公用方法 FindSharedStep 傳回伺服器中的共用步驟定義。
公用方法 MoveToNewOwner 將這個測試動作加入至新擁有者,並將目前擁有者設定為 null。 (繼承自 ITestAction)。

回頁首

事件

  名稱 描述
公用事件 PropertyChanged 當屬性值變更時發生。 (繼承自 INotifyPropertyChanged)。

回頁首

請參閱

參考

Microsoft.TeamFoundation.TestManagement.Client 命名空間

ISharedStep