Java.Net.URLConnection.GetHeaderFieldInt Method
Returns the specified header value as a number.

Syntax

[Android.Runtime.Register("getHeaderFieldInt", "(Ljava/lang/String;I)I", "GetGetHeaderFieldInt_Ljava_lang_String_IHandler")]
public virtual int GetHeaderFieldInt (string field, int defaultValue)

Parameters

field
the header field name whose value is needed.
defaultValue
the default value if no field has been found.

Returns

Documentation for this section has not yet been entered.

Remarks

Returns the specified header value as a number. Returns the defaultValue if no such header field could be found or the value could not be parsed as an int.

[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