DetailsView.ExtractRowValues(IOrderedDictionary, Boolean, Boolean) 方法

定义

检索显示的每个字段的值,并将它们存储在指定的 IOrderedDictionary 对象中。Retrieves the values of each field displayed and stores them in the specified IOrderedDictionary object.

protected:
 virtual void ExtractRowValues(System::Collections::Specialized::IOrderedDictionary ^ fieldValues, bool includeReadOnlyFields, bool includeKeys);
protected virtual void ExtractRowValues (System.Collections.Specialized.IOrderedDictionary fieldValues, bool includeReadOnlyFields, bool includeKeys);
abstract member ExtractRowValues : System.Collections.Specialized.IOrderedDictionary * bool * bool -> unit
override this.ExtractRowValues : System.Collections.Specialized.IOrderedDictionary * bool * bool -> unit
Protected Overridable Sub ExtractRowValues (fieldValues As IOrderedDictionary, includeReadOnlyFields As Boolean, includeKeys As Boolean)

参数

fieldValues
IOrderedDictionary

用来存储字段值的 IOrderedDictionaryAn IOrderedDictionary used to store the field values.

includeReadOnlyFields
Boolean

true 表示包含只读字段;否则为 falsetrue to include read-only fields; otherwise, false.

includeKeys
Boolean

true 表示包含主键字段;否则为 falsetrue to include the primary key field or fields; otherwise, false.

注解

ExtractRowValues方法是DetailsView由控件调用以检索每个字段的值的帮助器方法。The ExtractRowValues method is a helper method called by the DetailsView control to retrieve the values of each field. 这些值可用于数据源操作。The values can them be used for data source operations. 您可以分别使用includeReadOnlyFieldsincludePrimaryKey参数来指定提取的值是否包括只读字段和键字段。You can specify whether the extracted values include read-only fields and key fields by using the includeReadOnlyFields and includePrimaryKey parameters, respectively.

继承者说明

扩展DetailsView类时, 可以重写此方法以创建自己的例程来检索字段值。When extending the DetailsView class, you can override this method to create your own routine to retrieve the field values.

适用于