Creates the SipSubscription object and initializes the values.

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

Syntax

Visual Basic (Declaration)
Public 
Sub 
New ( _
	
subscriber 
As 

RealTimeEndpoint, _
	
targetAddress 
As 

RealTimeAddress, _
	
eventPackageName 
As 
String, _
	
processorInterface 
As 

ISipSubscriptionProcessor, _
	
isQueryOnly 
As 
Boolean, _
	
localIdentityUri 
As 
String _
)
C#
public 
SipSubscription(
	

RealTimeEndpoint 
subscriber,
	

RealTimeAddress 
targetAddress,
	
string 
eventPackageName,
	

ISipSubscriptionProcessor 
processorInterface,
	
bool 
isQueryOnly,
	
string 
localIdentityUri
)
Visual C++
public:
SipSubscription(
	

RealTimeEndpoint^ 
subscriber, 
	

RealTimeAddress^ 
targetAddress, 
	
String^ 
eventPackageName, 
	

ISipSubscriptionProcessor^ 
processorInterface, 
	
bool 
isQueryOnly, 
	
String^ 
localIdentityUri
)
JavaScript

Microsoft.Rtc.Signaling.SipSubscription = 
function(
subscriber, 
targetAddress, 
eventPackageName, 
processorInterface, 
isQueryOnly, 
localIdentityUri);

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 Toheader of the subscription request.
eventPackageName
Type: String
The event package.
processorInterface
Type: Microsoft.Rtc.Signaling . . :: . ISipSubscriptionProcessor
The Subscription Processor interface.
isQueryOnly
Type: Boolean
Indicates if this subscription is query only; this will add the Expires=0 header on request and no retry on failure.
localIdentityUri
Type: String
The local identity URI to use in "From" headers.

Exceptions

Exception Condition
ArgumentNullException Thrown when the eventPackageName or subscriber is null.
ArgumentException Thrown when the eventPackageName parameter is an empty string.

See Also