Partilhar via


PresenceCategory.GenerateInstanceId Method

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

Namespace:  Microsoft.Rtc.Collaboration.Presence
Assembly:  Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)

Syntax

'Declaration
Public Shared Function GenerateInstanceId ( _
    id As String, _
    numberOfBits As Integer _
) As Long
'Usage
Dim id As String
Dim numberOfBits As Integer
Dim returnValue As Long

returnValue = PresenceCategory.GenerateInstanceId(id, _
    numberOfBits)
public static long GenerateInstanceId(
    string id,
    int numberOfBits
)

Parameters

  • id
    Type: System.String
    The id used for generating the instance id.
  • numberOfBits
    Type: System.Int32
    The number of bits (0-32) by which the instance id is shifted right.

Return Value

Type: System.Int64

See Also

Reference

PresenceCategory Class

PresenceCategory Members

Microsoft.Rtc.Collaboration.Presence Namespace