ObjectListShowCommandsEventArgs.Commands 屬性

定義

取得或設定 ObjectListCommandCollection 物件中的命令集合。 這個集合一開始是空的。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

public:
 property System::Web::UI::MobileControls::ObjectListCommandCollection ^ Commands { System::Web::UI::MobileControls::ObjectListCommandCollection ^ get(); };
public System.Web.UI.MobileControls.ObjectListCommandCollection Commands { get; }
member this.Commands : System.Web.UI.MobileControls.ObjectListCommandCollection
Public ReadOnly Property Commands As ObjectListCommandCollection

屬性值

ObjectListCommandCollection 中命令的集合。

備註

您可以使用 類別的 ObjectListCommandCollectionRemoveAddAtRemoveAt 方法,在集合Add中新增或移除命令。 您可以使用這個屬性來存取和修改 事件期間ShowItemCommands物件中ObjectList單一項目的命令。 所做的變更不會影響為 ObjectList 物件指定的命令基底集合。

適用於

另請參閱