Compartir a través de


URLConnection.GetDefaultRequestProperty(String) Method

Definition

Caution

deprecated

Returns the value of the default request property.

[Android.Runtime.Register("getDefaultRequestProperty", "(Ljava/lang/String;)Ljava/lang/String;", "")]
[System.Obsolete("deprecated")]
public static string? GetDefaultRequestProperty (string? key);
[<Android.Runtime.Register("getDefaultRequestProperty", "(Ljava/lang/String;)Ljava/lang/String;", "")>]
[<System.Obsolete("deprecated")>]
static member GetDefaultRequestProperty : string -> string

Parameters

key
String

the keyword by which the request is known (e.g., "Accept").

Returns

the value of the default request property for the specified key.

Attributes

Remarks

Returns the value of the default request property. Default request properties are set for every connection.

This member is deprecated. The instance specific getRequestProperty method should be used after an appropriate instance of URLConnection is obtained.

Java documentation for java.net.URLConnection.getDefaultRequestProperty(java.lang.String).

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