共用方式為


Page.Items 屬性

定義

會取得頁面上下文中儲存的物件清單。

public:
 property System::Collections::IDictionary ^ Items { System::Collections::IDictionary ^ get(); };
[System.ComponentModel.Browsable(false)]
public System.Collections.IDictionary Items { get; }
[<System.ComponentModel.Browsable(false)>]
member this.Items : System.Collections.IDictionary
Public ReadOnly Property Items As IDictionary

屬性值

IDictionary 的是儲存在頁面上下文中的物件。

屬性

備註

使用這個 Items 屬性來儲存與頁面請求相同生命週期的物件。 此屬性為唯讀;不過,你可以在它回傳的 IDictionary 物件中加入物件。

新增 Items 到屬性的物件會在頁面生命週期中持續使用,因此你可以在頁面生命週期早期的事件中加入物件 Items ,並在後續事件中存取這些物件。

適用於