Page.DeterminePostBackMode 方法

定義

使用 POST 或 GET 命令傳回,回傳至頁面的資料 NameValueCollection

protected:
 virtual System::Collections::Specialized::NameValueCollection ^ DeterminePostBackMode();
protected public:
 virtual System::Collections::Specialized::NameValueCollection ^ DeterminePostBackMode();
protected virtual System.Collections.Specialized.NameValueCollection DeterminePostBackMode ();
protected internal virtual System.Collections.Specialized.NameValueCollection DeterminePostBackMode ();
abstract member DeterminePostBackMode : unit -> System.Collections.Specialized.NameValueCollection
override this.DeterminePostBackMode : unit -> System.Collections.Specialized.NameValueCollection
Protected Overridable Function DeterminePostBackMode () As NameValueCollection
Protected Friend Overridable Function DeterminePostBackMode () As NameValueCollection

傳回

NameValueCollection

包含表單資料的 NameValueCollection 物件。 如果回傳使用 POST 命令,則會從 Context 物件傳回表單資訊。 如果回傳使用 GET 命令,則會傳回查詢字串資訊。 如果網頁是第一次被要求,則傳回 null

備註

方法 DeterminePostBackMode 會傳 NameValueCollection 回 物件,其中包含傳回至頁面的資料。 頁面隱藏欄位 VIEWSTATE 和 EVENTTARGET 的存在可用來協助判斷是否發生回傳事件。 呼叫 IsPostBack 方法時 DeterminePostBackMode 會設定 屬性。

適用於

另請參閱