語言

ComponentRegistrationBridge<TComponent>.GetFromComponent<TRegistration> 方法

定義

呼叫 啟動 以 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

適用於