Column.IdentitySeed 属性

Gets or sets the identity seed for an identity column.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Design)> _
Public Property IdentitySeed As Long 
    Get 
    Set
用法
Dim instance As Column 
Dim value As Long 

value = instance.IdentitySeed

instance.IdentitySeed = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)]
public long IdentitySeed { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::ReadOnlyAfterCreation|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase|SfcPropertyFlags::Design)]
public:
property long long IdentitySeed {
    long long get ();
    void set (long long value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)>]
member IdentitySeed : int64 with get, set
function get IdentitySeed () : long 
function set IdentitySeed (value : long)

属性值

类型:System.Int64
An Int32 value that specifies the identity seed for an identity column.

注释

The identity seed is the amount that the identity column is set to initially for the first new row.

The Identity property must be set to True before setting this property.

示例

使用数据库对象

请参阅

参考

Column 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

CREATE TABLE (Transact-SQL)