Java.Net.URLConnection.GetRequestProperty Method
Returns the value of the request header property specified by {code field} or null if there is no field with this name.

Syntax

[Android.Runtime.Register("getRequestProperty", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetRequestProperty_Ljava_lang_String_Handler")]
public virtual string GetRequestProperty (string field)

Parameters

field
the name of the request header property.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionif the connection has been already established.

Remarks

Returns the value of the request header property specified by {code field} or null if there is no field with this name. The base implementation of this method returns always null.

[Android Documentation]

Requirements

Namespace: Java.Net
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1