SelectionList.Selection 属性

定义

返回选定项,如果未做任何选择,则返回 nullReturns the selected item, or null if there is no selection. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public:
 property System::Web::UI::MobileControls::MobileListItem ^ Selection { System::Web::UI::MobileControls::MobileListItem ^ get(); };
[System.ComponentModel.Bindable(false)]
[System.ComponentModel.Browsable(false)]
public System.Web.UI.MobileControls.MobileListItem Selection { get; }
[<System.ComponentModel.Bindable(false)>]
[<System.ComponentModel.Browsable(false)>]
member this.Selection : System.Web.UI.MobileControls.MobileListItem
Public ReadOnly Property Selection As MobileListItem

属性值

MobileListItem

选择列表中当前选择的项。The currently selected item in the selection list.

属性

注解

如果控件处于多重选择模式,此属性将返回第一个选定项。If the control is in multiple selection mode, this property returns the first selected item.

适用于