UserEndpointPresenceServices.GetPresenceRelationshipLevel Method

Retrieves the highest container membership match for a UC entity.

Namespace:  Microsoft.Rtc.Collaboration
Assembly:  Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)

Syntax

'Declaration
Public Function GetPresenceRelationshipLevel ( _
    uri As RealTimeAddress, _
    sourceNetwork As SourceNetwork _
) As PresenceRelationshipLevel
'Usage
Dim instance As UserEndpointPresenceServices
Dim uri As RealTimeAddress
Dim sourceNetwork As SourceNetwork
Dim returnValue As PresenceRelationshipLevel

returnValue = instance.GetPresenceRelationshipLevel(uri, _
    sourceNetwork)
public PresenceRelationshipLevel GetPresenceRelationshipLevel(
    RealTimeAddress uri,
    SourceNetwork sourceNetwork
)

Parameters

Return Value

Type: Microsoft.Rtc.Collaboration.Presence.PresenceRelationshipLevel
The highest container that this entity belongs to.

Exceptions

Exception Condition
ArgumentNullException

Thrown when uri is null.

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

UserEndpointPresenceServices Class

UserEndpointPresenceServices Members

Microsoft.Rtc.Collaboration Namespace