DetailsView.CreateAutoGeneratedRow(AutoGeneratedFieldProperties) 方法

定义

创建一个 AutoGeneratedField 对象,该对象表示使用指定的字段属性自动生成的行字段。Creates an AutoGeneratedField object that represents an automatically generated row field using the specified field properties.

protected:
 virtual System::Web::UI::WebControls::AutoGeneratedField ^ CreateAutoGeneratedRow(System::Web::UI::WebControls::AutoGeneratedFieldProperties ^ fieldProperties);
protected virtual System.Web.UI.WebControls.AutoGeneratedField CreateAutoGeneratedRow (System.Web.UI.WebControls.AutoGeneratedFieldProperties fieldProperties);
abstract member CreateAutoGeneratedRow : System.Web.UI.WebControls.AutoGeneratedFieldProperties -> System.Web.UI.WebControls.AutoGeneratedField
override this.CreateAutoGeneratedRow : System.Web.UI.WebControls.AutoGeneratedFieldProperties -> System.Web.UI.WebControls.AutoGeneratedField
Protected Overridable Function CreateAutoGeneratedRow (fieldProperties As AutoGeneratedFieldProperties) As AutoGeneratedField

参数

fieldProperties
AutoGeneratedFieldProperties

AutoGeneratedFieldProperties,包含 AutoGeneratedField 的属性。An AutoGeneratedFieldProperties that contains the properties for the AutoGeneratedField.

返回

一个 AutoGeneratedField,包含 fieldProperties 参数指定的字段属性。An AutoGeneratedField that contains the field properties specified by the fieldProperties parameter.

注解

方法是一个帮助器方法, 该DetailsView方法由控件调用以使用指定的字段属性创建自动生成的行字段。 CreateAutoGeneratedRowThe CreateAutoGeneratedRow method is a helper method called by the DetailsView control to create an automatically generated row field using the specified field properties.

继承者说明

扩展DetailsView类时, 可以重写此方法以创建自己的自动生成的行字段。When extending the DetailsView class, you can override this method to create your own automatically generated row field.

适用于

另请参阅