Page.Items Page.Items Page.Items Page.Items Property

定義

取得頁面內容中儲存的物件清單。Gets a list of objects stored in the page context.

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

屬性值

IDictionary 的參考,其中包含頁面內容中儲存的物件。A reference to an IDictionary containing objects stored in the page context.

備註

使用Items將具有相同的存留期的物件儲存為頁面要求的屬性。Use the Items property to store objects with the same lifetime as the page request. 這個屬性是唯讀的;不過,您可以在其中加入物件至IDictionary物件傳回。This property is read-only; however, you can add objects to the IDictionary object it returns.

若要加入的物件Items屬性是可用的頁面上,存留期,因此您可以加入物件至Items屬性在頁面生命週期初期的事件中週期,並存取這些物件在稍後的事件。Objects added to the Items property are available throughout the lifetime of the page, so you can add objects to the Items property in events early in the page life cycle and access those objects in later events.

適用於