DataViewTypeAttribute Třída

Definice

DataViewTypeAttribute by měly být použity k dekorovaným vlastnostem třídy a polím, pokud budou instance této třídy načteny jako ML.NET IDataView. Funkce Register() bude volána k registraci DataViewType pro určitou sType.Attribute Vždy, když je hodnota zadaná do registrované a její hodnoty, bude tento typ této hodnoty (tjType. a ) přidružený IDataViewDataViewType.AttributeType

[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)
Dědičnost
DataViewTypeAttribute
Odvozené
Atributy
Implementuje

Konstruktory

DataViewTypeAttribute()

DataViewTypeAttribute by měly být použity k dekorovaným vlastnostem třídy a polím, pokud budou instance této třídy načteny jako ML.NET IDataView. Funkce Register() bude volána k registraci DataViewType pro určitou sType.Attribute Vždy, když je hodnota zadaná do registrované a její hodnoty, bude tento typ této hodnoty (tjType. a ) přidružený IDataViewDataViewType.AttributeType

Metody

Equals(DataViewTypeAttribute)

Vrátí true , pokud this je ekvivalentní other a false jinak.

Register()

Funkce implicitně vyvolána ML.NET při zpracování vlastního typu. Vytvoří vazbu DataViewType na vlastní typ a jeho atributy.

Platí pro