GetMembershipLevel Method

Returns the highest container membership match for the given RealTimeAddress.

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


Public Shared Function GetMembershipLevel ( _
    uri As String, _
    sourceNetworkType As SourceNetwork, _
    containers As IEnumerable(Of ContainerMembership) _
) As Integer
Dim uri As String
Dim sourceNetworkType As SourceNetwork
Dim containers As IEnumerable(Of ContainerMembership)
Dim returnValue As Integer

returnValue = ContainerMembership.GetMembershipLevel(uri, _
    sourceNetworkType, containers)
public static int GetMembershipLevel(
    string uri,
    SourceNetwork sourceNetworkType,
    IEnumerable<ContainerMembership> containers


Return Value

Type: System..::..Int32


Returns -1 if no membership match found. Matches will be performed in following order: 1) Full URI match, 2) Best domain match 3) Source network type match.

See Also


ContainerMembership Class

ContainerMembership Members

Microsoft.Rtc.Collaboration.Presence Namespace