IdentitySeed プロパティ

ID 列の IDENTITY シードを取得します。値の設定も可能です。

名前空間:  Microsoft.SqlServer.Management.Smo
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
<SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)> _
Public Property IdentitySeed As Long
    Get
    Set
'使用
Dim instance As Column
Dim value As Long

value = instance.IdentitySeed

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

プロパティ値

型: System. . :: . .Int64
ID 列の IDENTITY シードを示す Int32 値です。

説明

IDENTITY シードは、1 番目の新しい行の ID 列に最初に設定される量です。

このプロパティの設定前に、Identity プロパティを True に設定する必要があります。