Sdp<TGlobalDescription, TMediaDescription>.TryParse Method (Byte )

Parses the supplied array 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 ( _
    bytes As Byte() _
) As Boolean
'Usage
Dim instance As Sdp
Dim bytes As Byte()
Dim returnValue As Boolean

returnValue = instance.TryParse(bytes)
public bool TryParse(
    byte[] bytes
)

Parameters

  • bytes
    Type: []
    The array 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
ArgumentNullException

Thrown when null is passed as an argument.

InvalidOperationException

An attempt to parse more than one text was made.

See Also

Reference

Sdp<TGlobalDescription, TMediaDescription> Class

Sdp<TGlobalDescription, TMediaDescription> Members

TryParse Overload

Microsoft.Rtc.Signaling Namespace