Language

HttpProtocolParams.SetUserAgent(IHttpParams, String) Method

Definition

[Android.Runtime.Register("setUserAgent", "(Lorg/apache/http/params/HttpParams;Ljava/lang/String;)V", "")]
public static void SetUserAgent(Org.Apache.Http.Params.IHttpParams? params, string? useragent);
[<Android.Runtime.Register("setUserAgent", "(Lorg/apache/http/params/HttpParams;Ljava/lang/String;)V", "")>]
static member SetUserAgent : Org.Apache.Http.Params.IHttpParams * string -> unit

Parameters

params
IHttpParams

The parameter collection to update. Must not be null.

useragent
String

The value to use for the User-Agent header, or null for no configured value.

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