Share via


URLConnection.GetHeaderFieldKey(Int32) Method

Definition

Returns the key for the n<sup>th</sup> header field.

[Android.Runtime.Register("getHeaderFieldKey", "(I)Ljava/lang/String;", "GetGetHeaderFieldKey_IHandler")]
public virtual string? GetHeaderFieldKey (int n);
[<Android.Runtime.Register("getHeaderFieldKey", "(I)Ljava/lang/String;", "GetGetHeaderFieldKey_IHandler")>]
abstract member GetHeaderFieldKey : int -> string
override this.GetHeaderFieldKey : int -> string

Parameters

n
Int32

an index, where n>=0

Returns

the key for the n<sup>th</sup> header field, or null if there are fewer than n+1 fields.

Attributes

Remarks

Returns the key for the n<sup>th</sup> header field. It returns null if there are fewer than n+1 fields.

Java documentation for java.net.URLConnection.getHeaderFieldKey(int).

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