次の方法で共有


IdentityRangeInfo.CurrentIdentityValue プロパティ

生成された最後の ID 値を取得します。値の設定も可能です。

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

構文

'宣言
Public Property CurrentIdentityValue As Long 
    Get 
    Set
'使用
Dim instance As IdentityRangeInfo 
Dim value As Long 

value = instance.CurrentIdentityValue

instance.CurrentIdentityValue = value
public long CurrentIdentityValue { get; set; }
public:
property long long CurrentIdentityValue {
    long long get ();
    void set (long long value);
}
member CurrentIdentityValue : int64 with get, set
function get CurrentIdentityValue () : long 
function set CurrentIdentityValue (value : long)

プロパティ値

型: System.Int64
Int64 値です。

説明

このプロパティは、すべてのユーザーが取得または設定できます。

この名前空間、クラス、またはメンバーは、Microsoft .NET Framework 2.0 でのみサポートされています。

関連項目

参照

IdentityRangeInfo クラス

Microsoft.SqlServer.Replication 名前空間

その他の技術情報

IDENT_CURRENT (Transact-SQL)