DataViewTypeAttribute 類別

定義

DataViewTypeAttribute 如果該類別的實例會載入為 ML.NET IDataView ,則應該用來裝飾類別屬性和欄位。 系統會呼叫 函式 Register() ,以 DataViewTypeType 向 註冊 Attribute 的 。 每當輸入至已註冊 Type 及其 Attribute 的值時,該值的類型 (,也就是 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
衍生
屬性
實作

建構函式

DataViewTypeAttribute()

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

方法

Equals(DataViewTypeAttribute)

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

Register()

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

適用於