Edit

Share via


PresenceCategory.GenerateInstanceId(String, Int32) Method

Definition

Generate a unique hash for an instance id for a given string identifier and number of bits, return the ID.

public:
 static long GenerateInstanceId(System::String ^ id, int numberOfBits);
public static long GenerateInstanceId (string id, int numberOfBits);
static member GenerateInstanceId : string * int -> int64
Public Shared Function GenerateInstanceId (id As String, numberOfBits As Integer) As Long

Parameters

id
String

The id used for generating the instance id.

numberOfBits
Int32

The number of bits (0-32) by which the instance id is shifted right.

Returns

Applies to