Parse Method (ArraySegment(Byte), Boolean)
Parses the specified 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
- segment
Type: System..::..ArraySegment<(Of <(<'Byte>)>)>
The array segment containing the SDP to parse.
- strict
Type: System..::..Boolean
true indicates the SDP parser should strictly enforce the SDP encoding rules.
Exceptions
Exception | Condition |
---|---|
MessageParsingException | Thrown when the provided SDP is malformated. See exception message for details. |
Remarks
Strict parsing is generally recommended. It may necessary to disable strict parsing in order to communicate with a non-compliant device.
See Also
Reference
Sdp<(Of <(<'TGlobalDescription, TMediaDescription>)>)> Class
Sdp<(Of <(<'TGlobalDescription, TMediaDescription>)>)> Members