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
的 。
- 屬性
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應