UnvalidatedRequestValuesWrapper.Item[String] 屬性

定義

FormCookiesQueryStringServerVariables 集合中取得指定的物件,而不觸發 ASP.NET 要求驗證。Gets the specified object from the Form, Cookies, QueryString, or ServerVariables collection, without triggering ASP.NET request validation.

public:
 virtual property System::String ^ default[System::String ^] { System::String ^ get(System::String ^ field); };
public override string this[string field] { get; }
member this.Item(string) : string
Default Public Overrides ReadOnly Property Item(field As String) As String

參數

field
String

要擷取的物件的索引鍵。The key of the object to retrieve.

屬性值

String

要求的物件,找不到物件時,則為 nullThe requested object, or null if the object is not found.

備註

重要

如果您使用此屬性,則必須手動檢查資料是否有潛在的跨網站腳本攻擊。If you use this property, you must manually check the data for potential cross-site scripting attacks.

適用於