Düzenle

Aracılığıyla paylaş


NSMutableUrlRequest.Item[String] Property

Definition

Gets or sets the value of the specified HTTP header.

public string this[string key] { get; set; }
member this.Item(string) : string with get, set

Parameters

key
String

HTTP Header Name.

Property Value

Remarks

Use this indexer value to set or get the value of a specific HTTP header.

void SetHeader (NSMutableUrlRequest request)
{
    request ["User-Agent"] = "XamarinMac Spider Program";
}

Applies to