Column.Identity Column.Identity Column.Identity Property

Definition

Gets or sets the Boolean property value that specifies whether the column is an identity column.

public:
 property bool Identity { bool get(); void set(bool value); };
[Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcProperty(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.ReadOnlyAfterCreation | Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Standalone | Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.SqlAzureDatabase | Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Design)]
public bool Identity { get; set; }
Public Property Identity As Boolean
Property Value

A Boolean value that specifies the whether the column is an identity column.

If True, the column is an identity column. Otherwise, False (default).

Examples

Working with Database Objects

Applies to