Język

HttpProtocolParamBean.SetUserAgent(String) Method

Definition

[Android.Runtime.Register("setUserAgent", "(Ljava/lang/String;)V", "GetSetUserAgent_Ljava_lang_String_Handler")]
public virtual void SetUserAgent(string? userAgent);
[<Android.Runtime.Register("setUserAgent", "(Ljava/lang/String;)V", "GetSetUserAgent_Ljava_lang_String_Handler")>]
abstract member SetUserAgent : string -> unit
override this.SetUserAgent : string -> unit

Parameters

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