Share via


WebPageBase.PageData Property

Provides array-like access to page data that is shared between pages, layout pages, and partial pages.

Namespace:  System.Web.WebPages
Assembly:  System.Web.WebPages (in System.Web.WebPages.dll)

Syntax

'Declaration
Public Overrides ReadOnly Property PageData As IDictionary(Of Object, Object)
    Get
'Usage
Dim instance As WebPageBase 
Dim value As IDictionary(Of Object, Object)

value = instance.PageData
public override IDictionary<Object, Object> PageData { get; }
public:
virtual property IDictionary<Object^, Object^>^ PageData {
    IDictionary<Object^, Object^>^ get () override;
}
abstract PageData : IDictionary<Object, Object>
override PageData : IDictionary<Object, Object>
override function get PageData () : IDictionary<Object, Object>

Property Value

Type: System.Collections.Generic.IDictionary<Object, Object>
A dictionary that contains page data.

Remarks

You can access data in the PageData property by index or key (for example, PageData[1] or PageData["FavoriteColor"]). This property accesses the same data as the Page property, except that it lets you access it using array-like syntax.

See Also

Reference

WebPageBase Class

System.Web.WebPages Namespace