SipServiceRequest Constructor (SipEndpoint, ContentType, Byte[])
Initializes a new instance of the class.
Namespace: Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Sub New ( _
requestorEndpoint As SipEndpoint, _
contentType As ContentType, _
messageBody As Byte() _
)
'Usage
Dim requestorEndpoint As SipEndpoint
Dim contentType As ContentType
Dim messageBody As Byte()
Dim instance As New SipServiceRequest(requestorEndpoint, _
contentType, messageBody)
public SipServiceRequest(
SipEndpoint requestorEndpoint,
ContentType contentType,
byte[] messageBody
)
Parameters
- requestorEndpoint
Type: Microsoft.Rtc.Signaling..::..SipEndpoint
The [SipEndpoint] creating the service request.
- contentType
Type: System.Net.Mime..::..ContentType
The content type for the service request.
- messageBody
Type: array<System..::..Byte>[]()[][]
The message body of the service request.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when the requestorEndpoint parameter is nullNothingnullptrunita null reference (Nothing in Visual Basic) or when contentType is nullNothingnullptrunita null reference (Nothing in Visual Basic), but messageBody is not empty (neither nullNothingnullptrunita null reference (Nothing in Visual Basic) or zero byte array). |