閱讀英文版本

分享方式:


DataViewTypeAttribute 類別

定義

DataViewTypeAttribute 如果該類別的實例會載入為 ML.NET IDataView ,則應該用來裝飾類別屬性和欄位。 系統會呼叫 函式 Register() ,以 DataViewTypeType 向 註冊 Attribute 的 。 每當輸入至已註冊 Type 及其 Attribute 的值時,該值的類型 (,也就是 Type 中的 IDataView) 會是相關聯的 DataViewType

C#
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public abstract class DataViewTypeAttribute : Attribute, IEquatable<Microsoft.ML.Data.DataViewTypeAttribute>
繼承
DataViewTypeAttribute
衍生
屬性
實作

建構函式

DataViewTypeAttribute()

DataViewTypeAttribute 如果該類別的實例會載入為 ML.NET IDataView ,則應該用來裝飾類別屬性和欄位。 系統會呼叫 函式 Register() ,以 DataViewTypeType 向 註冊 Attribute 的 。 每當輸入至已註冊 Type 及其 Attribute 的值時,該值的類型 (,也就是 Type 中的 IDataView) 會是相關聯的 DataViewType

方法

Equals(DataViewTypeAttribute)

如果 this 等於 otherfalse 則傳回 ,否則傳回 true

Register()

處理自訂類型時,由 ML.NET 隱含叫用的函式。 它會將 DataViewType 系結至自訂類型及其屬性。

適用於

產品 版本
ML.NET 1.1.0, 1.2.0, 1.3.1, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 2.0.0, 3.0.0, Preview, 4.0.0