ContainerMembership.GetMembershipLevel Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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