DataViewTypeAttribute 类

定义

DataViewTypeAttribute应用于修饰类属性和字段,如果该类的实例将加载为 ML.NETIDataView。 将调用该函数Register()以为其 s 注册 a TypeDataViewTypeAttribute。 每当键入到已注册 Type 的值及其 Attribute值时,该值的类型(即 a TypeIDataView 将是关联的 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.NETIDataView。 将调用该函数Register()以为其 s 注册 a TypeDataViewTypeAttribute。 每当键入到已注册 Type 的值及其 Attribute值时,该值的类型(即 a TypeIDataView 将是关联的 DataViewType

方法

名称 说明
Equals(DataViewTypeAttribute)

如果this等效otherfalse,则返回true;否则返回。

Register()

处理自定义类型时由 ML.NET 隐式调用的函数。 它将 DataViewType 绑定到自定义类型及其属性。

适用于