WorkflowRuntime.GetAllServices 方法

定義

多載

名稱 Description
GetAllServices(Type)

擷取所有新增到工作流程執行引擎中,實作或衍生自指定 Type的服務。

GetAllServices<T>()

檢索所有已加入工作流程執行引擎、實作或衍生自指定通用型別的服務。

GetAllServices(Type)

擷取所有新增到工作流程執行引擎中,實作或衍生自指定 Type的服務。

public:
 System::Collections::ObjectModel::ReadOnlyCollection<System::Object ^> ^ GetAllServices(Type ^ serviceType);
public System.Collections.ObjectModel.ReadOnlyCollection<object> GetAllServices(Type serviceType);
member this.GetAllServices : Type -> System.Collections.ObjectModel.ReadOnlyCollection<obj>
Public Function GetAllServices (serviceType As Type) As ReadOnlyCollection(Of Object)

參數

serviceType
Type

Type服務必須實施才能退還。

傳回

實作或衍生自指定 Type的服務。

例外狀況

是一個空參考()。

備註

ReadOnlyCollection<T> 值表示尚未新增任何實作或衍生自指定 Type 服務的服務到工作流程執行引擎中。

適用於

GetAllServices<T>()

檢索所有已加入工作流程執行引擎、實作或衍生自指定通用型別的服務。

public:
generic <typename T>
 System::Collections::ObjectModel::ReadOnlyCollection<T> ^ GetAllServices();
public System.Collections.ObjectModel.ReadOnlyCollection<T> GetAllServices<T>();
member this.GetAllServices : unit -> System.Collections.ObjectModel.ReadOnlyCollection<'T>
Public Function GetAllServices(Of T) () As ReadOnlyCollection(Of T)

類型參數

T

服務類型。

傳回

實作或衍生自指定通用型別的服務。

例外狀況

備註

ReadOnlyCollection<T> 則表示尚未在工作流程執行時引擎中新增任何實作或衍生自指定通用類型的服務。

適用於