IDataBoundControl.DataKeyNames 属性

定义

获取或设置一个数组,该数组包含显示在数据绑定控件中的项的主键字段的名称。Gets or sets an array that contains the names of the primary-key fields of the items that are displayed in a data-bound control.

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

属性值

String[]

一个数组,该数组包含显示在数据绑定控件中的项的主键字段的名称。An array that contains the names of the primary-key fields of the items that are displayed in a data-bound control.

适用于