M-Files API 23.11.13135.0
GetLatestObjVer Method
VaultObjectOperations Object : GetLatestObjVer Method
The object identifier.
If this parameter is true, the version that is currently checked out for the user should be considered to be the latest version. If this parameter is false, the latest version on the server is returned. Note that even if this parameter is true, the method never returns a version that is checked out to some other user.
True if the information should be always updated from the server.
Description
Gets the latest version of the specified object.
Syntax
Visual Basic
Public Function GetLatestObjVer( _
   ByVal ObjID As ObjID, _
   ByVal AllowCheckedOut As Boolean, _
   Optional ByVal UpdateFromServer As Boolean = False _
) As ObjVer
Parameters
ObjID
The object identifier.
AllowCheckedOut
If this parameter is true, the version that is currently checked out for the user should be considered to be the latest version. If this parameter is false, the latest version on the server is returned. Note that even if this parameter is true, the method never returns a version that is checked out to some other user.
UpdateFromServer
True if the information should be always updated from the server.
Remarks
Consider using the more recent GetLatestObjVerEx Method instead.
See Also

VaultObjectOperations Object  | VaultObjectOperations Members