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.

C#
public virtual void ExtractItemValues(System.Collections.Specialized.IOrderedDictionary itemValues, System.Web.UI.WebControls.ListViewItem item, bool includePrimaryKey);

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

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also