SipSubscription Constructor (RealTimeEndpoint, RealTimeAddress, String, ISipSubscriptionProcessor)
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 _
)
'Usage
Dim subscriber As RealTimeEndpoint
Dim targetAddress As RealTimeAddress
Dim eventPackageName As String
Dim processorInterface As ISipSubscriptionProcessor
Dim instance As New SipSubscription(subscriber, _
targetAddress, eventPackageName, _
processorInterface)
public SipSubscription(
RealTimeEndpoint subscriber,
RealTimeAddress targetAddress,
string eventPackageName,
ISipSubscriptionProcessor processorInterface
)
Parameters
- subscriber
Type: Microsoft.Rtc.Signaling.RealTimeEndpoint
The RealTimeEndpoint for the subscriber.
- targetAddress
Type: Microsoft.Rtc.Signaling.RealTimeAddress
The target address to be used in the [To] header of the subscription request.
- eventPackageName
Type: System.String
The event package.
- processorInterface
Type: Microsoft.Rtc.Signaling.ISipSubscriptionProcessor
The Subscription Processor interface.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when the eventPackageName or subscriber is null. |
ArgumentException | Thrown when the eventPackageName parameter is an empty string. |