PresenceCategory.GenerateInstanceId(String, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.