SipServiceRequest Constructor (RealTimeEndpoint, ContentType, Byte )
Initializes a new instance of the SipServiceRequest class.
Namespace: Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Sub New ( _
requestorEndpoint As RealTimeEndpoint, _
contentType As ContentType, _
messageBody As Byte() _
)
'Usage
Dim requestorEndpoint As RealTimeEndpoint
Dim contentType As ContentType
Dim messageBody As Byte()
Dim instance As New SipServiceRequest(requestorEndpoint, _
contentType, messageBody)
public SipServiceRequest(
RealTimeEndpoint requestorEndpoint,
ContentType contentType,
byte[] messageBody
)
Parameters
- requestorEndpoint
Type: Microsoft.Rtc.Signaling.RealTimeEndpoint
SipEndpoint creating the service request.
- contentType
Type: System.Net.Mime.ContentType
The content type for the service request.
- messageBody
Type: []
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). |