通过


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 事件中的属性,并在以后的事件中访问这些对象。

适用于