Edit

Share via


ContainerMembership.GetMembershipLevel Method

Definition

Retrieves the highest container membership match for a UC entity.

public:
 static int GetMembershipLevel(System::String ^ uri, Microsoft::Rtc::Collaboration::SourceNetwork sourceNetworkType, System::Collections::Generic::IEnumerable<Microsoft::Rtc::Collaboration::Presence::ContainerMembership ^> ^ containers);
public static int GetMembershipLevel (string uri, Microsoft.Rtc.Collaboration.SourceNetwork sourceNetworkType, System.Collections.Generic.IEnumerable<Microsoft.Rtc.Collaboration.Presence.ContainerMembership> containers);
static member GetMembershipLevel : string * Microsoft.Rtc.Collaboration.SourceNetwork * seq<Microsoft.Rtc.Collaboration.Presence.ContainerMembership> -> int
Public Shared Function GetMembershipLevel (uri As String, sourceNetworkType As SourceNetwork, containers As IEnumerable(Of ContainerMembership)) As Integer

Parameters

uri
String

URI of the UC entity.

sourceNetworkType
SourceNetwork

Network type that this entity belongs to.

containers
IEnumerable<ContainerMembership>

List of containers where the search has to be performed.

Returns

The highest container that this entity belongs to.

Exceptions

Thrown when containers or uri passed are null.

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

Applies to