SdpWriter.AddAttribute Method

Definition

Overloads

AddAttribute(SdpAttribute)

Appends the supplied attribute.

AddAttribute(String)

Adds an attribute. This function is used for attributes that have a name portion only, but no value portion.

AddAttribute(String, String)

Appends an attribute. This function is used for attributes that have a name portion only, but no value portion.

AddAttribute(SdpAttribute)

Appends the supplied attribute.

public:
 void AddAttribute(Microsoft::Rtc::Signaling::SdpAttribute ^ attribute);
public void AddAttribute (Microsoft.Rtc.Signaling.SdpAttribute attribute);
member this.AddAttribute : Microsoft.Rtc.Signaling.SdpAttribute -> unit
Public Sub AddAttribute (attribute As SdpAttribute)

Parameters

attribute
SdpAttribute

Attribute to add to the SDP.

Applies to

AddAttribute(String)

Adds an attribute. This function is used for attributes that have a name portion only, but no value portion.

public:
 void AddAttribute(System::String ^ name);
public void AddAttribute (string name);
member this.AddAttribute : string -> unit
Public Sub AddAttribute (name As String)

Parameters

name
String

The attribute name.

Exceptions

Thrown when the name attribute is null.

Thrown when the name attribute is an empty string.

Applies to

AddAttribute(String, String)

Appends an attribute. This function is used for attributes that have a name portion only, but no value portion.

public:
 void AddAttribute(System::String ^ name, System::String ^ value);
public void AddAttribute (string name, string value);
member this.AddAttribute : string * string -> unit
Public Sub AddAttribute (name As String, value As String)

Parameters

name
String

The attribute name.

value
String

The value of the attribute to append.

Exceptions

Thrown when the name attribute is null.

Thrown when the name attribute is an empty string.

Applies to