XhtmlMobileTextWriter.WriteAttribute(String, String, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om