SipSubscription Constructor (RealTimeEndpoint, RealTimeAddress, String, ISipSubscriptionProcessor, Boolean)

Creates the [SipSubscription] object and initializes the values.

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

Syntax

'Declaration
Public Sub New ( _
    subscriber As RealTimeEndpoint, _
    targetAddress As RealTimeAddress, _
    eventPackageName As String, _
    processorInterface As ISipSubscriptionProcessor, _
    isQueryOnly As Boolean _
)
'Usage
Dim subscriber As RealTimeEndpoint
Dim targetAddress As RealTimeAddress
Dim eventPackageName As String
Dim processorInterface As ISipSubscriptionProcessor
Dim isQueryOnly As Boolean

Dim instance As New SipSubscription(subscriber, _
    targetAddress, eventPackageName, _
    processorInterface, isQueryOnly)
public SipSubscription(
    RealTimeEndpoint subscriber,
    RealTimeAddress targetAddress,
    string eventPackageName,
    ISipSubscriptionProcessor processorInterface,
    bool isQueryOnly
)

Parameters

  • isQueryOnly
    Type: System..::..Boolean
    Indicates if this subscription is query-only; this adds the Expires=0 header on request and no retry on failure.

Exceptions

Exception Condition
ArgumentNullException

Thrown when any parameter passed is nullNothingnullptrunita null reference (Nothing in Visual Basic).

ArgumentException

Thrown when the eventPackageName parameter is an empty string.

See Also

Reference

SipSubscription Class

SipSubscription Members

SipSubscription Overload

Microsoft.Rtc.Signaling Namespace