Increment the given version number

Namespace:  NHibernate.Engine
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function Increment ( _
	version As Object, _
	versionType As IVersionType, _
	session As ISessionImplementor _
) As Object
C#
public static Object Increment(
	Object version,
	IVersionType versionType,
	ISessionImplementor session
)
Visual C++
public:
static Object^ Increment(
	Object^ version, 
	IVersionType^ versionType, 
	ISessionImplementor^ session
)
JavaScript
NHibernate.Engine.Versioning.increment = function(version, versionType, session);

Parameters

version
Type: System..::.Object
The value of the current version.
versionType
Type: NHibernate.Type..::.IVersionType
The IVersionType of the versioned property.
session
Type: NHibernate.Engine..::.ISessionImplementor
The current ISession.

Return Value

Returns the next value for the version.

See Also