Επεξεργασία

Κοινή χρήση μέσω


ListView.ExtractItemValues(IOrderedDictionary, ListViewItem, Boolean) Method

Definition

Retrieves the values of each field that is declared in the specified item, and stores them in the specified IOrderedDictionary object.

public:
 virtual void ExtractItemValues(System::Collections::Specialized::IOrderedDictionary ^ itemValues, System::Web::UI::WebControls::ListViewItem ^ item, bool includePrimaryKey);
public virtual void ExtractItemValues (System.Collections.Specialized.IOrderedDictionary itemValues, System.Web.UI.WebControls.ListViewItem item, bool includePrimaryKey);
abstract member ExtractItemValues : System.Collections.Specialized.IOrderedDictionary * System.Web.UI.WebControls.ListViewItem * bool -> unit
override this.ExtractItemValues : System.Collections.Specialized.IOrderedDictionary * System.Web.UI.WebControls.ListViewItem * bool -> unit
Public Overridable Sub ExtractItemValues (itemValues As IOrderedDictionary, item As ListViewItem, includePrimaryKey As Boolean)

Parameters

itemValues
IOrderedDictionary

A dictionary object that is used to store the field values.

item
ListViewItem

The ListViewItem object from which to retrieve the field values.

includePrimaryKey
Boolean

true to include the primary key field or fields; otherwise, false.

Exceptions

itemValues is null.

Remarks

The ExtractItemValues method is a helper method that is called by the ListView control to retrieve the values of each field that is declared in item. You can specify whether the extracted values include key fields by using the includePrimaryKey parameter.

Applies to

See also