TryParse Method (Byte[])
Parses the supplied array of bytes as an SDP.
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: array<System..::..Byte>[]()[][]
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, [LastParseErrorMessage] and [LastParseErrorLineNumber] provide information about why the SDP cannot be parsed.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when bytes are nullNothingnullptrunita null reference (Nothing in Visual Basic). |
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