语言

HttpRequestMessageProperty.QueryString 属性

定义

获取或设置 HTTP 请求的查询字符串。

public:
 property System::String ^ QueryString { System::String ^ get(); void set(System::String ^ value); };
public string QueryString { get; set; }
member this.QueryString : string with get, set
Public Property QueryString As String

属性值

HTTP 请求中的查询字符串。

例外

该值设置为 null。

注解

有许多基于 HTTP 请求的查询字符串(例如 SQL 注入攻击)的已知安全攻击。 始终严格验证查询字符串中包含的参数。 如果在未验证的情况下使用值,则会打开一个已知的安全漏洞。

适用于