語言

DataViewTypeManager.Register 方法

定義

多載

名稱 Description
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)

來源:
DataViewTypeManager.cs
來源:
DataViewTypeManager.cs
來源:
DataViewTypeManager.cs

這個函式告訴 應該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>)

來源:
DataViewTypeManager.cs
來源:
DataViewTypeManager.cs
來源:
DataViewTypeManager.cs

警告

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

屬性

適用於