WorkflowRuntime.GetAllServices 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | 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)
參數
傳回
實作或衍生自指定 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> 則表示尚未在工作流程執行時引擎中新增任何實作或衍生自指定通用類型的服務。