語言

DataViewTypeAttribute 類別

定義

DataViewTypeAttribute若該類別的實例將以 ML.NET IDataView載入,則應該用於裝飾類別屬性與欄位。 函式 Register() 將被呼叫以註冊 a DataViewType 作為 a Type ,並以 s Attribute為代號。 每當輸入到註冊 Type 值及其 Attributes 時,該值的型別(即 Type) IDataView 會在 中 對應 DataViewType。

[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public abstract class DataViewTypeAttribute : Attribute, IEquatable<Microsoft.ML.Data.DataViewTypeAttribute>
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type DataViewTypeAttribute = class
    inherit Attribute
    interface IEquatable<DataViewTypeAttribute>
Public MustInherit Class DataViewTypeAttribute
Inherits Attribute
Implements IEquatable(Of DataViewTypeAttribute)
繼承
DataViewTypeAttribute
衍生
屬性
實作

建構函式

名稱 Description
DataViewTypeAttribute()

DataViewTypeAttribute若該類別的實例將以 ML.NET IDataView載入,則應該用於裝飾類別屬性與欄位。 函式 Register() 將被呼叫以註冊 a DataViewType 作為 a Type ,並以 s Attribute為代號。 每當輸入到註冊 Type 值及其 Attributes 時,該值的型別(即 Type) IDataView 會在 中 對應 DataViewType。

方法

名稱 Description
Equals(DataViewTypeAttribute)

若 this 等價於 other ,false則返回 true ,否則。

Register()

ML.NET 在處理自訂型別時隱含呼叫的函式。 它會將 DataViewType 綁定到自訂類型及其屬性。

適用於