Parses the supplied array of bytes as an SDP.
Namespace:
Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in
microsoft.rtc.collaboration.dll)
Syntax
|
Public Function TryParse ( _
rawSdp As Byte(), _
offset As Integer, _
count As Integer, _
strict As Boolean _
) As Boolean
|
|
public bool TryParse (
byte[] rawSdp,
int offset,
int count,
bool strict
)
|
Parameters
- rawSdp
-
The array of bytes containing the SDP to parse.
- offset
-
The offset into the byte array where parsing should begin.
- count
-
The number of bytes in the array to parse.
- strict
-
A value of true indicates the SDP parser should strictly
enforce the SDP encoding rules. It is recommended that strict
parsing is always used; however, being more lenient can be useful
if there is a need to communicate with a noncompliant device.
Return Value
Returns
true if the array contains a valid SDP. If
false is returned,
LastParseErrorMessage and
LastParseErrorLineNumber provide information about why the
SDP cannot be parsed.
Exceptions
Exception type |
Condition |
ArgumentNullException
|
Thrown when rawSdp is null.
|
ArgumentOutOfRangeException
|
Thrown when start and length are not within range of
the supplied array.
|
InvalidOperationException
|
An attempt to parse more than one text was made.
|
Remarks
Thread Safety
All public static (Shared in Visual
Basic) members of this type are thread-safe. Instance members are
not guaranteed to be thread-safe.
Platforms
Development Platforms
Windows XP Professional with Service Pack 2 (SP2), Windows Server
2003, Windows Vista Ultimate Edition, Windows Vista Business
Edition, Windows Vista Enterprise Edition
Target Platforms
See Also