Sdílet prostřednictvím


Table.CheckIdentityValue Method

Verifies the integrity of all identity columns in the referenced table.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Function CheckIdentityValue As StringCollection
'Usage
Dim instance As Table
Dim returnValue As StringCollection

returnValue = instance.CheckIdentityValue()
public StringCollection CheckIdentityValue()
public:
StringCollection^ CheckIdentityValue()
member CheckIdentityValue : unit -> StringCollection 
public function CheckIdentityValue() : StringCollection

Return Value

Type: System.Collections.Specialized.StringCollection
A StringCollection system object value that contains the current identity value and the current column value.

Remarks

This method is functionally equivalent to the Transact-SQL CHECK IDENT statement.