Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
Encodes all the parameter values for a Web method and writes them to the specified writer.
Encode(TextWriter, Object[]) |
Encodes all the parameter values for a Web method and writes them to the specified writer. |
Encode(TextWriter, String, Object) |
Encodes a specified parameter value and writes it to the specified writer. |
Encodes all the parameter values for a Web method and writes them to the specified writer.
protected:
void Encode(System::IO::TextWriter ^ writer, cli::array <System::Object ^> ^ values);
protected void Encode(System.IO.TextWriter writer, object[] values);
member this.Encode : System.IO.TextWriter * obj[] -> unit
Protected Sub Encode (writer As TextWriter, values As Object())
A TextWriter object that does the writing to the HTTP request.
The Web method parameter values.
This overload of the Encode method calls the other overload, Encode, for each of the parameter values, including individual items in arrays.
Product | Versions |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Encodes a specified parameter value and writes it to the specified writer.
protected:
void Encode(System::IO::TextWriter ^ writer, System::String ^ name, System::Object ^ value);
protected void Encode(System.IO.TextWriter writer, string name, object value);
member this.Encode : System.IO.TextWriter * string * obj -> unit
Protected Sub Encode (writer As TextWriter, name As String, value As Object)
A TextWriter object that does the writing to the HTTP request.
The name of the parameter that will be encoded.
The value of the parameter that will be encoded.
The other signature of the Encode method, Encode, which is called for each Web method, calls this signature of the Encode method for each of the parameter values, including individual items in arrays.
Product | Versions |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in