Share via


IServerVariablesFeature.Item[String] Property

Definition

Gets or sets the value of a server variable for the current request.

public:
 property System::String ^ default[System::String ^] { System::String ^ get(System::String ^ variableName); void set(System::String ^ variableName, System::String ^ value); };
public string this[string variableName] { get; set; }
public string? this[string variableName] { get; set; }
member this.Item(string) : string with get, set
Default Public Property Item(variableName As String) As String

Parameters

variableName
String

The variable name

Property Value

May return null or empty if the variable does not exist or is not set.

Applies to