DataViewTypeManager.Register 方法

定義

多載

Register(DataViewType, Type, DataViewTypeAttribute)

此函式會 dataViewType 指出應該在 ML.NET 的類型系統中表示資料 type 。 已註冊 type 的 必須是標準 C# 物件的類型。

Register(DataViewType, Type, IEnumerable<Attribute>)
已淘汰.
已淘汰.

此函式會 dataViewType 指出應該在 ML.NET 的類型系統中表示資料 type 。 已註冊 type 的 必須是標準 C# 物件的類型。

Register(DataViewType, Type, DataViewTypeAttribute)

此函式會 dataViewType 指出應該在 ML.NET 的類型系統中表示資料 type 。 已註冊 type 的 必須是標準 C# 物件的類型。

public static void Register (Microsoft.ML.Data.DataViewType dataViewType, Type type, Microsoft.ML.Data.DataViewTypeAttribute typeAttribute = default);
static member Register : Microsoft.ML.Data.DataViewType * Type * Microsoft.ML.Data.DataViewTypeAttribute -> unit
Public Shared Sub Register (dataViewType As DataViewType, type As Type, Optional typeAttribute As DataViewTypeAttribute = Nothing)

參數

dataViewType
DataViewType

ML.NET 類型系統中的對應類型 type

type
Type

C# 中的原生類型。

typeAttribute
DataViewTypeAttribute

DataViewTypeAttribute附加至 type 的 。

適用於

Register(DataViewType, Type, IEnumerable<Attribute>)

警告

This API is deprecated, please use the new form of Register which takes in a single DataViewTypeAttribute instead.

警告

This API is depricated, please use the new form of Register which takes in a single DataViewTypeAttribute instead.

此函式會 dataViewType 指出應該在 ML.NET 的類型系統中表示資料 type 。 已註冊 type 的 必須是標準 C# 物件的類型。

[System.Obsolete("This API is deprecated, please use the new form of Register which takes in a single DataViewTypeAttribute instead.", false)]
public static void Register (Microsoft.ML.Data.DataViewType dataViewType, Type type, System.Collections.Generic.IEnumerable<Attribute> typeAttributes);
public static void Register (Microsoft.ML.Data.DataViewType dataViewType, Type type, System.Collections.Generic.IEnumerable<Attribute> typeAttributes = default);
[System.Obsolete("This API is depricated, please use the new form of Register which takes in a single DataViewTypeAttribute instead.", false)]
public static void Register (Microsoft.ML.Data.DataViewType dataViewType, Type type, System.Collections.Generic.IEnumerable<Attribute> typeAttributes);
[<System.Obsolete("This API is deprecated, please use the new form of Register which takes in a single DataViewTypeAttribute instead.", false)>]
static member Register : Microsoft.ML.Data.DataViewType * Type * seq<Attribute> -> unit
static member Register : Microsoft.ML.Data.DataViewType * Type * seq<Attribute> -> unit
[<System.Obsolete("This API is depricated, please use the new form of Register which takes in a single DataViewTypeAttribute instead.", false)>]
static member Register : Microsoft.ML.Data.DataViewType * Type * seq<Attribute> -> unit
Public Shared Sub Register (dataViewType As DataViewType, type As Type, typeAttributes As IEnumerable(Of Attribute))
Public Shared Sub Register (dataViewType As DataViewType, type As Type, Optional typeAttributes As IEnumerable(Of Attribute) = Nothing)

參數

dataViewType
DataViewType

ML.NET 類型系統中的對應類型 type

type
Type

C# 中的原生類型。

typeAttributes
IEnumerable<Attribute>

Attribute附加至 type 的 。

屬性

適用於