Sdp<TGlobalDescription, TMediaDescription>.TryParse Method (ArraySegment<Byte>)
Parses the supplied array segment of bytes as an SDP. Returns true if the SDP is valid.
Namespace: Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Function TryParse ( _
segment As ArraySegment(Of Byte) _
) As Boolean
'Usage
Dim instance As Sdp
Dim segment As ArraySegment(Of Byte)
Dim returnValue As Boolean
returnValue = instance.TryParse(segment)
public bool TryParse(
ArraySegment<byte> segment
)
Parameters
- segment
Type: System.ArraySegment<Byte>
The array segment of bytes containing the SDP to parse.
Return Value
Type: System.Boolean
Returns true if the array contained a valid SDP. If false is returned, then LastParseErrorMessage and LastParseErrorLineNumber provide information about why the SDP could not be parsed.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | An attempt to parse more than one text was made. |
See Also
Reference
Sdp<TGlobalDescription, TMediaDescription> Class