URLEncodedUtils.Format(IList<INameValuePair>, String) Method

Definition

Formats name-value pairs as an application/x-www-form-urlencoded string suitable for an HTTP PUT or POST entity.

[Android.Runtime.Register("format", "(Ljava/util/List;Ljava/lang/String;)Ljava/lang/String;", "")]
public static string? Format(System.Collections.Generic.IList<Org.Apache.Http.INameValuePair>? parameters, string? encoding);
[<Android.Runtime.Register("format", "(Ljava/util/List;Ljava/lang/String;)Ljava/lang/String;", "")>]
static member Format : System.Collections.Generic.IList<Org.Apache.Http.INameValuePair> * string -> string

Parameters

parameters
IList<INameValuePair>

The name-value pairs to encode.

encoding
String

The character encoding to use, or null to use ISO-8859-1.

Returns

An application/x-www-form-urlencoded string containing the encoded parameters.

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to