Dela via


DataViewTypeAttribute Class

Definition

DataViewTypeAttribute should be used to decorated class properties and fields, if that class' instances will be loaded as ML.NET IDataView. The function Register() will be called to register a DataViewType for a Type with its Attributes. Whenever a value typed to the registered Type and its Attributes, that value's type (i.e., a Type) in IDataView would be the associated 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)
Inheritance
DataViewTypeAttribute
Derived
Attributes
Implements

Constructors

DataViewTypeAttribute()

Methods

Equals(DataViewTypeAttribute)

Return true if this is equivalent to other and false otherwise.

Register()

A function implicitly invoked by ML.NET when processing a custom type. It binds a DataViewType to a custom type plus its attributes.

Applies to