Lenguaje

DataViewTypeAttribute Clase

Definición

DataViewTypeAttributese debe usar para decorar propiedades y campos de clase, si las instancias de esa clase se cargarán como ML.NET IDataView. Se llamará a la función Register() para registrar un DataViewType para un Type objeto con sus Attributes. Cada vez que un valor escrito en el objeto registrado Type y su s Attribute, ese valor del tipo (es decir, un Typeelemento ) de IDataView sería el asociado 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)
Herencia
DataViewTypeAttribute
Derivado
Atributos
Implementaciones

Constructores

Nombre Description
DataViewTypeAttribute()

DataViewTypeAttributese debe usar para decorar propiedades y campos de clase, si las instancias de esa clase se cargarán como ML.NET IDataView. Se llamará a la función Register() para registrar un DataViewType para un Type objeto con sus Attributes. Cada vez que un valor escrito en el objeto registrado Type y su s Attribute, ese valor del tipo (es decir, un Typeelemento ) de IDataView sería el asociado DataViewType.

Métodos

Nombre Description
Equals(DataViewTypeAttribute)

Devuelve true si this es equivalente a other y false de lo contrario.

Register()

Una función invocada implícitamente por ML.NET al procesar un tipo personalizado. Enlaza un DataViewType a un tipo personalizado más sus atributos.

Se aplica a