共用方式為


IComponentFactory<TArg1,TComponent> 介面

定義

當我們採用一個額外的參數 (和 IHostEnvironment) 時,用來建立元件的介面。

public interface IComponentFactory<in TArg1,out TComponent> : Microsoft.ML.Runtime.IComponentFactory
type IComponentFactory<'TArg1, 'Component> = interface
    interface IComponentFactory
Public Interface IComponentFactory(Of In TArg1, Out TComponent)
Implements IComponentFactory

類型參數

TArg1
這是反變數的型別參數。 也就是說,您可以使用您指定的類型,或衍生程度較低的任何類型。 如需共變數與反變數的詳細資訊,請參閱泛型中的共變數與反變數
TComponent
這是共變數的型別參數。 也就是說,您可以使用您指定的類型,或衍生程度較高的任何類型。 如需共變數與反變數的詳細資訊,請參閱泛型中的共變數與反變數
實作

方法

CreateComponent(IHostEnvironment, TArg1)

當我們採用一個額外的參數 (和 IHostEnvironment) 時,用來建立元件的介面。

適用於