แก้ไข

แชร์ผ่าน


ListBox.IPostBackDataHandler.LoadPostData(String, NameValueCollection) Method

Definition

Loads the posted content of the list control, if it is different from the last posting.

 virtual bool System.Web.UI.IPostBackDataHandler.LoadPostData(System::String ^ postDataKey, System::Collections::Specialized::NameValueCollection ^ postCollection) = System::Web::UI::IPostBackDataHandler::LoadPostData;
bool IPostBackDataHandler.LoadPostData (string postDataKey, System.Collections.Specialized.NameValueCollection postCollection);
abstract member System.Web.UI.IPostBackDataHandler.LoadPostData : string * System.Collections.Specialized.NameValueCollection -> bool
override this.System.Web.UI.IPostBackDataHandler.LoadPostData : string * System.Collections.Specialized.NameValueCollection -> bool
Function LoadPostData (postDataKey As String, postCollection As NameValueCollection) As Boolean Implements IPostBackDataHandler.LoadPostData

Parameters

postDataKey
String

The index within the posted collection that references the content to load.

postCollection
NameValueCollection

The collection posted to the server.

Returns

true if the posted content is different from the last posting; otherwise, false.

Implements

Remarks

Typically, you should use the ListBox.LoadPostData method to process posted data for changes to a ListBox object.

The IPostBackDataHandler.LoadPostData method is an explicit interface member implementation. It can be used only when the ListBox instance is cast to an IPostBackDataHandler interface.

Notes to Inheritors

To define a custom implementation for processing posted data for a ListBox object, override the LoadPostData(String, NameValueCollection) member. The explicit interface implementation calls the LoadPostData(String, NameValueCollection) method to process the posted data for the control.

Applies to

See also