GetBytes Method

Creates an array of bytes containing a valid SDP that is ready to be transmitted.

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

Syntax

'Declaration
Public Function GetBytes As Byte()
'Usage
Dim instance As Sdp
Dim returnValue As Byte()

returnValue = instance.GetBytes()
public byte[] GetBytes()

Return Value

Type: array<System..::..Byte>[]()[][]
Returns SDP as a new instance of a byte array.

Exceptions

Exception Condition
MessageParsingException

Thrown when the SDP cannot be composed in its current state.

Remarks

[GetBytes] calls [Write]() and then converts the result to an array of bytes using the UTF-8 character set.

See Also

Reference

Sdp<(Of <(<'TGlobalDescription, TMediaDescription>)>)> Class

Sdp<(Of <(<'TGlobalDescription, TMediaDescription>)>)> Members

Microsoft.Rtc.Signaling Namespace