DataSetFieldSchema.Identity Propriedade

Definição

Obtém um valor que indica se o valor do campo de dados é incrementado automaticamente para cada nova linha adicionada à tabela ou exibição.Gets a value indicating whether the value of the data field automatically increments for each new row added to the table or view.

public:
 property bool Identity { bool get(); };
public bool Identity { get; }
member this.Identity : bool
Public ReadOnly Property Identity As Boolean

Valor da propriedade

Boolean

true Se o DataType for numérico e o valor da coluna for incrementado automaticamente à medida que novas linhas forem adicionadas ao DataTable ; caso contrário, false .true if the DataType is numeric and the value of the column increments automatically as new rows are added to the DataTable; otherwise, false.

Implementações

Comentários

A Identity propriedade corresponde à AutoIncrement propriedade de um DataColumn .The Identity property corresponds to the AutoIncrement property of a DataColumn.

Aplica-se a

Confira também