DevForce Help Reference
GetNextTempId Method (IIdGenerator)


Property for which a new ID should be generated
Generates a new temporary ID for a specified EntityProperty.
Syntax
'Declaration
 
Function GetNextTempId( _
   ByVal property As DataEntityProperty _
) As Object
'Usage
 
Dim instance As IIdGenerator
Dim property As DataEntityProperty
Dim value As Object
 
value = instance.GetNextTempId(property)

Parameters

property
Property for which a new ID should be generated

Return Value

A new temporary ID
Remarks
The definition of a "temporary" ID is user-defined. In the sample code for a "LongIdGenerator" negative integers are used as temporary IDs.

This method should also store the temporary IDs generated in a UniqueIdCollection.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IIdGenerator Interface
IIdGenerator Members

Send Feedback