ColumnNameAttribute Class

Definition

Allows a member to specify IDataView column name directly, as opposed to the default behavior of using the member name as the column name.

C#
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public sealed class ColumnNameAttribute : Attribute
Inheritance
ColumnNameAttribute
Attributes

Constructors

ColumnNameAttribute(String)

Allows one to specify a name to expose this column as, as opposed to the default behavior of using the member name as the column name.

Applies to

Product Versions
ML.NET 1.0.0, 1.1.0, 1.2.0, 1.3.1, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 2.0.0, 3.0.0, Preview, 4.0.0