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 事件中的 屬性,並在稍後的事件中存取這些物件。

適用於