@microsoft/sp-page-context package

Page context services for the SharePoint Framework

Classes

CultureInfo

This class is primarily used with the PageContext class. It provides culture info for the current user of the application.

PageContext

The SharePoint page context object.

SPField

A field represents the data model for a column in SharePoint list view.

SPList

This class is primarily used with the PageContext class. It provides contextual information for the SharePoint list that hosts the page.

SPListItem

This class is primarily used with the PageContext class. It provides contextual information for the SharePoint list item that hosts the page.

SPPermission

Used to test whether the current user has a requested set of permissions.

SPSite

This class is primarily used with the PageContext class. It provides contextual information for the SharePoint site collection ("SPSite") that hosts the page.

SPTimeZone

It provides timezone information from SharePoint. A conversion from UTC to local time can be calculated by using the following formula.

SPUser

This class is primarily used with the PageContext class. It provides contextual information for the SharePoint user that is accessing the page.

SPWeb

This class is primarily used with the PageContext class. It provides contextual information for the SharePoint site ("SPWeb") that hosts the page.

Interfaces

ISPSystemTime

Interface that represents a SPSystemTime structure.

ISPTimeZoneData

Interface that represents the data necessary to build an TimeZone object.

Type Aliases

SPDayOfWeek

The type members represent the seven days of a week.