Initializes a new instance of the SipServiceRequest class.

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

Syntax

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

SipEndpoint, _
	
contentType 
As 
ContentType, _
	
messageBody 
As 
Byte() _
)
C#
public 
SipServiceRequest(
	
SipEndpoint

requestorEndpoint,
	
ContentType 
contentType,
	
byte[] 
messageBody
)
Visual C++
public:
SipServiceRequest(
	

SipEndpoint^ 
requestorEndpoint, 
	
ContentType^ 
contentType, 
	
array<
unsigned char>^ 
messageBody
)
JavaScript

Microsoft.Rtc.Signaling.SipServiceRequest = 
function(
requestorEndpoint, 
contentType, 
messageBody);

Parameters

requestorEndpoint
Type: Microsoft.Rtc.Signaling . . :: . SipEndpoint
SipEndpoint creating the service request.
contentType
Type: ContentType
The content type for the service request.
messageBody
Type: array< Byte > [] () []
The message body of the service request.

Exceptions

Exception Condition
ArgumentNullException Thrown when requestorEndpoint parameter is null.
ArgumentNullException Thrown when contentType is null, but messageBody is not empty( neither null or zero byte array).

See Also