System.Net.WebHeaderCollection.Get Method

Get the value of a particular header in the collection, specified by the name of the header.

Syntax

public override string Get (string name)

Parameters

name
The name of the Web header.

Returns

A string holding the value of the specified header.

Remarks

This method returns null if there is no name header in the collection.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0