DataViewTypeAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
DataViewTypeAttribute应用于修饰类属性和字段,如果该类的实例将加载为 ML.NETIDataView。 将调用该函数Register()以为其 s 注册 a TypeDataViewTypeAttribute。 每当键入到已注册 Type 的值及其 Attribute值时,该值的类型(即 a 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.NETIDataView。 将调用该函数Register()以为其 s 注册 a TypeDataViewTypeAttribute。 每当键入到已注册 Type 的值及其 Attribute值时,该值的类型(即 a Type) IDataView 将是关联的 DataViewType。 |
方法
| 名称 | 说明 |
|---|---|
| Equals(DataViewTypeAttribute) |
如果 |
| Register() |
处理自定义类型时由 ML.NET 隐式调用的函数。 它将 DataViewType 绑定到自定义类型及其属性。 |