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
- uri
Type: System.String
URI of the UC entity.
- sourceNetworkType
Type: Microsoft.Rtc.Collaboration.SourceNetwork
Network type that this entity belongs to.
- containers
Type: System.Collections.Generic.IEnumerable<ContainerMembership>
List of containers where the search has to be performed.
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