IServerVariablesFeature.Item[String] 属性

定义

获取或设置当前请求的服务器变量的值。

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

参数

variableName
String

变量名称

属性值

如果变量不存在或未设置,则可能会返回 null 或空。

适用于