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的 s。

属性

适用于