BTreeBaseKey, ValueGetKeyId Method (Key) |
When Key type implements
IOptimizedPersistable, you can use this function to get the Id of the persistent object instead of the entire object.
Use for performance reasons in certain cases where reading the object isn't desired. To avoid opening the object, a comparison array which is flagged as complete key must be used.
Namespace:
VelocityDb.Collection.BTree
Assembly:
VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax public ulong GetKeyId(
Key key
)
Public Function GetKeyId (
key As Key
) As ULong
public:
unsigned long long GetKeyId(
Key key
)
member GetKeyId :
key : 'Key -> uint64
Parameters
- key
- Type: Key
Transient lookup object of type Key (which in this case must be implementing IOptimizedPersistable
Return Value
Type:
UInt64The Id of the corresponding persistent object or 0 if not persistent or not implementing
IOptimizedPersistableSee Also