ContainerMembership.GetMembershipLevel Method

Retrieves the highest container membership match for a UC entity.

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

Return Value

Type: System.Int32
The highest container that this entity belongs to.

Exceptions

Exception Condition
ArgumentNullException

Thrown when containers or uri passed are null.

ArgumentException

Thrown when uri is not valid or if there are duplicate containers in containers or if sourceNetworkType is invalid.

Remarks

Matching will be performed in the following order: 1) Exact URI match 2) Best domain match 3) Source network type match

See Also

Reference

ContainerMembership Class

ContainerMembership Members

Microsoft.Rtc.Collaboration.Presence Namespace