Share via


DataViewTypeAttribute Classe

Definizione

DataViewTypeAttribute deve essere usato per decorare le proprietà e i campi della classe, se le istanze della classe verranno caricate come ML.NET IDataView. La funzione Register() verrà chiamata per registrare un DataViewType oggetto per un Type con il relativo Attributes. Ogni volta che un valore digitato al registrato Type e Attributeal relativo tipo, tale valore (ad esempio, un Type) in IDataView sarebbe l'oggetto associato 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)
Ereditarietà
DataViewTypeAttribute
Derivato
Attributi
Implementazioni

Costruttori

DataViewTypeAttribute()

DataViewTypeAttribute deve essere usato per decorare le proprietà e i campi della classe, se le istanze della classe verranno caricate come ML.NET IDataView. La funzione Register() verrà chiamata per registrare un DataViewType oggetto per un Type con il relativo Attributes. Ogni volta che un valore digitato al registrato Type e Attributeal relativo tipo, tale valore (ad esempio, un Type) in IDataView sarebbe l'oggetto associato DataViewType.

Metodi

Equals(DataViewTypeAttribute)

Restituisce true se this è equivalente a other e false in caso contrario.

Register()

Una funzione richiamata in modo implicito da ML.NET durante l'elaborazione di un tipo personalizzato. Associa un oggetto DataViewType a un tipo personalizzato e ai relativi attributi.

Si applica a