Επεξεργασία

Κοινή χρήση μέσω


XhtmlMobileTextWriter.WriteAttribute(String, String, Boolean) Method

Definition

Writes an attribute and its value to the current element using the provided attribute and value, and encodes the value if specified. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public:
 override void WriteAttribute(System::String ^ attribute, System::String ^ value, bool encode);
public override void WriteAttribute (string attribute, string value, bool encode);
override this.WriteAttribute : string * string * bool -> unit
Public Overrides Sub WriteAttribute (attribute As String, value As String, encode As Boolean)

Parameters

attribute
String

The name of the attribute.

value
String

The value for the attribute.

encode
Boolean

If true, the value is encoded before being written.

Remarks

If the value is null or an empty string, no attribute is written because XHTML requires that all attributes have values.

This method is used primarily by developers of custom mobile page and control adapters.

Applies to

See also