UrlTestEncoder.Encode 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.
Overloads
Encode(String) |
Encodes the supplied string and returns the encoded text as a new string. |
Encode(TextWriter, Char[], Int32, Int32) |
Encodes characters from an array and writes them to a TextWriter object. |
Encode(TextWriter, String, Int32, Int32) |
Encodes a substring and writes it to a TextWriter object. |
Encode(String)
- Source:
- UrlTestEncoder.cs
- Source:
- UrlTestEncoder.cs
- Source:
- UrlTestEncoder.cs
Encodes the supplied string and returns the encoded text as a new string.
public:
override System::String ^ Encode(System::String ^ value);
public override string Encode (string value);
override this.Encode : string -> string
Public Overrides Function Encode (value As String) As String
Parameters
- value
- String
The string to encode.
Returns
The encoded string.
Applies to
Encode(TextWriter, Char[], Int32, Int32)
- Source:
- UrlTestEncoder.cs
- Source:
- UrlTestEncoder.cs
- Source:
- UrlTestEncoder.cs
Encodes characters from an array and writes them to a TextWriter object.
public:
override void Encode(System::IO::TextWriter ^ output, cli::array <char> ^ value, int startIndex, int characterCount);
public override void Encode (System.IO.TextWriter output, char[] value, int startIndex, int characterCount);
override this.Encode : System.IO.TextWriter * char[] * int * int -> unit
Public Overrides Sub Encode (output As TextWriter, value As Char(), startIndex As Integer, characterCount As Integer)
Parameters
- output
- TextWriter
The stream to which to write the encoded text.
- value
- Char[]
The array of characters to encode.
- startIndex
- Int32
The array index of the first character to encode.
- characterCount
- Int32
The number of characters in the array to encode.
Applies to
Encode(TextWriter, String, Int32, Int32)
- Source:
- UrlTestEncoder.cs
- Source:
- UrlTestEncoder.cs
- Source:
- UrlTestEncoder.cs
Encodes a substring and writes it to a TextWriter object.
public:
override void Encode(System::IO::TextWriter ^ output, System::String ^ value, int startIndex, int characterCount);
public override void Encode (System.IO.TextWriter output, string value, int startIndex, int characterCount);
override this.Encode : System.IO.TextWriter * string * int * int -> unit
Public Overrides Sub Encode (output As TextWriter, value As String, startIndex As Integer, characterCount As Integer)
Parameters
- output
- TextWriter
The stream to which to write the encoded text.
- value
- String
The string whose substring is to be encoded.
- startIndex
- Int32
The index where the substring starts.
- characterCount
- Int32
The number of characters in the substring.
Applies to
.NET