Sdp<TGlobalDescription, TMediaDescription>.Parse Method (ArraySegment<Byte>, Boolean)

Parses the supplied array segment into data structures representing the components of the SDP.

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

Syntax

'Declaration
Public Sub Parse ( _
    segment As ArraySegment(Of Byte), _
    strict As Boolean _
)
'Usage
Dim instance As Sdp
Dim segment As ArraySegment(Of Byte)
Dim strict As Boolean

instance.Parse(segment, strict)
public void Parse(
    ArraySegment<byte> segment,
    bool strict
)

Parameters

  • strict
    Type: System.Boolean
    A value of true indicates the SDP parser should strictly enforce the SDP encoding rules. It is recommended that strict parsing is always used, however being more lenient may be useful there is a need to communicate with a noncompliant device.

Exceptions

Exception Condition
MessageParsingException

Thrown when the provided SDP is malformated. See exception message for details.

See Also

Reference

Sdp<TGlobalDescription, TMediaDescription> Class

Sdp<TGlobalDescription, TMediaDescription> Members

Parse Overload

Microsoft.Rtc.Signaling Namespace