TryParse Method (ArraySegment(Byte))
Parses the supplied array segment of bytes as an SDP.
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<(Of <(<'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, [LastParseErrorMessage] and [LastParseErrorLineNumber] provide information about why the SDP cannot be parsed.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Thrown when an attempt to parse more than one text was made. |
Remarks
Returns true if the SDP is valid.
See Also
Reference
Sdp<(Of <(<'TGlobalDescription, TMediaDescription>)>)> Class
Sdp<(Of <(<'TGlobalDescription, TMediaDescription>)>)> Members