System.Web.Services.Protocols.UrlEncodedParameterWriter.Encode Method

Encodes a specified parameter value and writes it to the specified writer.

Syntax

protected void Encode (System.IO.TextWriter writer, string name, object value)

Parameters

writer
A System.IO.TextWriter object that does the writing to the HTTP request.
name
The name of the parameter that will be encoded.
value
The value of the parameter that will be encoded.

Remarks

The other signature of the UrlEncodedParameterWriter.Encode(System.IO.TextWriter, string, object) method, UrlEncodedParameterWriter.Encode(System.IO.TextWriter, Object[]), which is called for each Web method, calls this signature of the UrlEncodedParameterWriter.Encode(System.IO.TextWriter, string, object) method for each of the parameter values, including individual items in arrays.

Requirements

Namespace: System.Web.Services.Protocols
Assembly: System.Web.Services (in System.Web.Services.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0