TextEncoder.Encode TextEncoder.Encode TextEncoder.Encode TextEncoder.Encode Method

Definition

Overloads

Encode(String) Encode(String) Encode(String) Encode(String)

Encodes the supplied string and returns the encoded text as a new string.

Encode(TextWriter, String) Encode(TextWriter, String) Encode(TextWriter, String) Encode(TextWriter, String)

Encodes the specified string to a TextWriter object.

Encode(TextWriter, Char[], Int32, Int32) Encode(TextWriter, Char[], Int32, Int32) Encode(TextWriter, Char[], Int32, Int32) Encode(TextWriter, Char[], Int32, Int32)

Encodes characters from an array and writes them to a TextWriter object.

Encode(TextWriter, String, Int32, Int32) Encode(TextWriter, String, Int32, Int32) Encode(TextWriter, String, Int32, Int32) Encode(TextWriter, String, Int32, Int32)

Encodes a substring and writes it to a TextWriter object.

Encode(String) Encode(String) Encode(String) Encode(String)

Encodes the supplied string and returns the encoded text as a new string.

public:
 virtual System::String ^ Encode(System::String ^ value);
public virtual string Encode (string value);
abstract member Encode : string -> string
override this.Encode : string -> string
Public Overridable Function Encode (value As String) As String

Parameters

value
String String String String

The string to encode.

Returns

The encoded string.

Exceptions

Encode(TextWriter, String) Encode(TextWriter, String) Encode(TextWriter, String) Encode(TextWriter, String)

Encodes the specified string to a TextWriter object.

public:
 void Encode(System::IO::TextWriter ^ output, System::String ^ value);
public void Encode (System.IO.TextWriter output, string value);
member this.Encode : System.IO.TextWriter * string -> unit
Public Sub Encode (output As TextWriter, value As String)

Parameters

output
TextWriter TextWriter TextWriter TextWriter

The stream to which to write the encoded text.

value
String String String String

The string to encode.

Encode(TextWriter, Char[], Int32, Int32) Encode(TextWriter, Char[], Int32, Int32) Encode(TextWriter, Char[], Int32, Int32) Encode(TextWriter, Char[], Int32, Int32)

Encodes characters from an array and writes them to a TextWriter object.

public:
 virtual void Encode(System::IO::TextWriter ^ output, cli::array <char> ^ value, int startIndex, int characterCount);
public virtual void Encode (System.IO.TextWriter output, char[] value, int startIndex, int characterCount);
abstract member Encode : System.IO.TextWriter * char[] * int * int -> unit
override this.Encode : System.IO.TextWriter * char[] * int * int -> unit
Public Overridable Sub Encode (output As TextWriter, value As Char(), startIndex As Integer, characterCount As Integer)

Parameters

output
TextWriter TextWriter TextWriter TextWriter

The stream to which to write the encoded text.

value
Char[]

The array of characters to encode.

startIndex
Int32 Int32 Int32 Int32

The array index of the first character to encode.

characterCount
Int32 Int32 Int32 Int32

The number of characters in the array to encode.

Exceptions

Encode(TextWriter, String, Int32, Int32) Encode(TextWriter, String, Int32, Int32) Encode(TextWriter, String, Int32, Int32) Encode(TextWriter, String, Int32, Int32)

Encodes a substring and writes it to a TextWriter object.

public:
 virtual void Encode(System::IO::TextWriter ^ output, System::String ^ value, int startIndex, int characterCount);
public virtual void Encode (System.IO.TextWriter output, string value, int startIndex, int characterCount);
abstract member Encode : System.IO.TextWriter * string * int * int -> unit
override this.Encode : System.IO.TextWriter * string * int * int -> unit
Public Overridable Sub Encode (output As TextWriter, value As String, startIndex As Integer, characterCount As Integer)

Parameters

output
TextWriter TextWriter TextWriter TextWriter

The stream to which to write the encoded text.

value
String String String String

The string whose substring is to be encoded.

startIndex
Int32 Int32 Int32 Int32

The index where the substring starts.

characterCount
Int32 Int32 Int32 Int32

The number of characters in the substring.

Exceptions

Applies to