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
可選的首字母 IServiceCollection 傳給 BotComponent。 若未提供,則使用空位 ServiceCollection 。
傳回
IEnumerable<TRegistration>
TRegistration由 .BotComponent