Edit

Share via


SdpGlobalDescription.ParseAttribute(SdpParseStatus, String, String) Method

Definition

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.

protected:
 virtual bool ParseAttribute(Microsoft::Rtc::Signaling::SdpParseStatus ^ parseStatus, System::String ^ name, System::String ^ value);
protected virtual bool ParseAttribute (Microsoft.Rtc.Signaling.SdpParseStatus parseStatus, string name, string value);
abstract member ParseAttribute : Microsoft.Rtc.Signaling.SdpParseStatus * string * string -> bool
override this.ParseAttribute : Microsoft.Rtc.Signaling.SdpParseStatus * string * string -> bool
Protected Overridable Function ParseAttribute (parseStatus As SdpParseStatus, name As String, value As String) As Boolean

Parameters

parseStatus
SdpParseStatus

Provides the current line number and a means to set a detailed error message should parsing fail.

name
String

The attribute name.

value
String

The attribute value, null if there is no ":" on the line.

Returns

False if the attribute is not valid.

Applies to