API Reference
Class
LdapToolOffsetCursor
Helpers for simple opaque cursors used by LDAP paging tools.
Inheritance
- Object
- LdapToolOffsetCursor
Methods
public static String Encode(Int64 offset) #Returns:
StringEncodes an offset as an opaque cursor (base64 of int64). Returns empty string for offsets less than or equal to 0.
Parameters
- offset System.Int64
public static Boolean TryDecode(String cursor, out Int64 offset) #Returns:
BooleanAttempts to decode an offset cursor. Supports: - base64-encoded 8-byte int64 - base64-encoded 4-byte int32 - plain numeric strings - empty/null (treated as offset 0)
Parameters
- cursor System.String
- offset System.Int64@