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)
Syntax
'Declaration
Public Shared Function GetMembershipLevel ( _
uri As String, _
sourceNetworkType As SourceNetwork, _
containers As IEnumerable(Of ContainerMembership) _
) As Integer
'Usage
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
)
Parameters
- uri
Type: System..::..String
- sourceNetworkType
Type: Microsoft.Rtc.Collaboration..::..SourceNetwork
- containers
Type: System.Collections.Generic..::..IEnumerable<(Of <(<'ContainerMembership>)>)>
Return Value
Type: System..::..Int32
Remarks
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.