URLConnection.GetHeaderField Method

Definition

Overloads

GetHeaderField(String)

Returns the value of the header field specified by key or null if there is no field with this name.

GetHeaderField(Int32)

Returns the header value at the field position pos or null if the header has fewer than pos fields.

GetHeaderField(String)

Returns the value of the header field specified by key or null if there is no field with this name.

[Android.Runtime.Register("getHeaderField", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetHeaderField_Ljava_lang_String_Handler")]
public virtual string GetHeaderField (string name);
abstract member GetHeaderField : string -> string
override this.GetHeaderField : string -> string

Parameters

name
String

Returns

String
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

GetHeaderField(Int32)

Returns the header value at the field position pos or null if the header has fewer than pos fields.

[Android.Runtime.Register("getHeaderField", "(I)Ljava/lang/String;", "GetGetHeaderField_IHandler")]
public virtual string GetHeaderField (int n);
abstract member GetHeaderField : int -> string
override this.GetHeaderField : int -> string

Parameters

n
Int32

Returns

String
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