Dela via


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.

[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public sealed class ColumnNameAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type ColumnNameAttribute = class
    inherit Attribute
Public NotInheritable Class ColumnNameAttribute
Inherits 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