แก้ไข

แชร์ผ่าน


ChtmlTextWriter.WriteEncodedText(String) Method

Definition

Encodes the specified text for the requesting device, and then writes it to the output stream.

public:
 override void WriteEncodedText(System::String ^ text);
public override void WriteEncodedText (string text);
override this.WriteEncodedText : string -> unit
Public Overrides Sub WriteEncodedText (text As String)

Parameters

text
String

The text string to encode and write to the output stream.

Remarks

If the text parameter passed into the WriteEncodedText method is null or has a length of zero, then nothing is written.

Use the WriteEncodedText method when a string contains angle brackets (< or >) or an ampersand (&) and you want to ensure that they are rendered correctly on the requesting device.

The WriteEncodedText method uses the base class's WriteEncodedText method.

Applies to

See also