ParseAttribute Method
Parses an attribute.
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
- parseStatus
Type: Microsoft.Rtc.Signaling..::..SdpParseStatus
Provides the current line number and a means to set a detailed error message if parsing fails.
- name
Type: System..::..String
The attribute name.
- value
Type: System..::..String
The attribute value; nullNothingnullptrunita null reference (Nothing in Visual Basic) if there is no colon (:) on the line.
Return Value
Type: System..::..Boolean
false if the attribute is not valid.
Remarks
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 simply creates an instance of [SdpAttribute] and appends it to the list of [SdpAttributes]. Should a derived class still want the attribute appended, it should call the base implementation.