PageAdapter.DeterminePostBackMode 方法

定義

判斷網頁是否在回傳中,然後傳回回傳變數的名稱/值組合。

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

傳回

回傳變數的 NameValueCollection (如果有的話),否則為 null

備註

方法 DeterminePostBackMode 會傳回下列其中一個集合:

  • 如果 HTTP 資料傳輸方法為 POST ,則形成變數。

  • 如果 HTTP 方法為 GET ,則查詢字串變數。

給繼承者的注意事項

當您繼承自 PageAdapter 類別時,可以覆寫 DeterminePostBackMode() 方法,以提供回傳變數集合的目標特定處理。

適用於

另請參閱