JavaScriptTestEncoder.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:
- JavaScriptTestEncoder.cs
- Source:
- JavaScriptTestEncoder.cs
- Source:
- JavaScriptTestEncoder.cs
- Source:
- JavaScriptTestEncoder.cs
- Source:
- JavaScriptTestEncoder.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:
- JavaScriptTestEncoder.cs
- Source:
- JavaScriptTestEncoder.cs
- Source:
- JavaScriptTestEncoder.cs
- Source:
- JavaScriptTestEncoder.cs
- Source:
- JavaScriptTestEncoder.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:
- JavaScriptTestEncoder.cs
- Source:
- JavaScriptTestEncoder.cs
- Source:
- JavaScriptTestEncoder.cs
- Source:
- JavaScriptTestEncoder.cs
- Source:
- JavaScriptTestEncoder.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
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기