ListView.ExtractItemValues(IOrderedDictionary, ListViewItem, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.
item
is not a ListViewDataItem object.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應