Database.GetLastInsertId Method

Returns the identity column of the most recently inserted row.

Namespace:  WebMatrix.Data
Assembly:  WebMatrix.Data (in WebMatrix.Data.dll)

Syntax

'Declaration
Public Function GetLastInsertId As Object
'Usage
Dim instance As Database 
Dim returnValue As Object 

returnValue = instance.GetLastInsertId()
public Object GetLastInsertId()
public:
Object^ GetLastInsertId()
member GetLastInsertId : unit -> Object
public function GetLastInsertId() : Object

Return Value

Type: System.Object
The ID of the most recently inserted row.

See Also

Reference

Database Class

WebMatrix.Data Namespace