DataViewTypeManager.Register 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Register(DataViewType, Type, DataViewTypeAttribute) |
此函数指示 |
Register(DataViewType, Type, IEnumerable<Attribute>) |
已过时.
已过时.
此函数指示 |
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。
- 属性
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈