语言

FormView.IDataBoundControl.DataKeyNames 属性

定义

获取或设置一个数组,该数组包含控件中显示的 FormView 项的主键字段的名称。

property cli::array <System::String ^> ^ System::Web::UI::WebControls::IDataBoundControl::DataKeyNames { cli::array <System::String ^> ^ get(); void set(cli::array <System::String ^> ^ value); };
string[] System.Web.UI.WebControls.IDataBoundControl.DataKeyNames { get; set; }
member this.System.Web.UI.WebControls.IDataBoundControl.DataKeyNames : string[] with get, set
 Property DataKeyNames As String() Implements IDataBoundControl.DataKeyNames

属性值

String[]

一个数组,其中包含控件中显示的 FormView 项的主键字段的名称。

实现

注解

此成员是显式接口成员实现。 仅当实例强制转换为FormView接口时IDataBoundControl,才能使用它。

适用于