Language

DataViewTypeAttribute クラス

定義

DataViewTypeAttributeクラスのインスタンスが ML.NET IDataViewとして読み込まれる場合は、クラスのプロパティとフィールドを修飾するために使用する必要があります。 関数Register()が呼び出され、TypeのDataViewTypeがその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()が呼び出され、TypeのDataViewTypeがそのAttributeに登録されます。 登録された Type とその Attributeに型指定された値は、その値の型 (つまり、 Type) IDataView 関連付けられた DataViewTypeになります。

メソッド

名前 説明
Equals(DataViewTypeAttribute)

thisがotherと等しい場合はtrueを返し、それ以外の場合はfalse返します。

Register()

カスタム型を処理するときに ML.NET によって暗黙的に呼び出される関数。 カスタム型とその属性に DataViewType をバインドします。

適用対象