SdpMediaDescription.ParseAttribute Method

Called whenever an attribute should be processed by the parser. A derived class can overload this function and provide customized parsing. The supplied default function will simply create an instance of SdpAttribute and append it to the list of SdpAttributes. Should a derived class still want the attribute appended, it should call the base implementation.

Namespace:  Microsoft.Rtc.Signaling
Assembly:  Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)

Syntax

'Declaration
Protected Overridable Function ParseAttribute ( _
    parseStatus As SdpParseStatus, _
    name As String, _
    value As String _
) As Boolean
'Usage
Dim parseStatus As SdpParseStatus
Dim name As String
Dim value As String
Dim returnValue As Boolean

returnValue = Me.ParseAttribute(parseStatus, _
    name, value)
protected virtual bool ParseAttribute(
    SdpParseStatus parseStatus,
    string name,
    string value
)

Parameters

  • value
    Type: System.String
    Attribute value, null if there is no ":" on the line.

Return Value

Type: System.Boolean
Returns false if the attribute is not valid.

See Also

Reference

SdpMediaDescription Class

SdpMediaDescription Members

Microsoft.Rtc.Signaling Namespace