ComponentRegistrationBridge<TComponent>.GetFromComponent<TRegistration> 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在 上 BotComponent 呼叫 啟動,以擷取 型 TRegistration
別 的註冊集合。
protected System.Collections.Generic.IEnumerable<TRegistration> GetFromComponent<TRegistration> (Microsoft.Extensions.DependencyInjection.IServiceCollection services = default);
member this.GetFromComponent : Microsoft.Extensions.DependencyInjection.IServiceCollection -> seq<'Registration>
Protected Function GetFromComponent(Of TRegistration) (Optional services As IServiceCollection = Nothing) As IEnumerable(Of TRegistration)
類型參數
- TRegistration
要從 取得的 BotComponent 註冊類型。
參數
- services
- IServiceCollection
要傳遞至 的 BotComponent 選擇性初始 IServiceCollection 。 如果未提供,則會使用空 ServiceCollection 的 。
傳回
IEnumerable<TRegistration>
所 BotComponent 套用之註冊的 TRegistration
集合。