sp webpart base.basewebpart.context - microsoft/Viva-Connections-Extensibility-Beta GitHub Wiki

Home > @microsoft/sp-webpart-base > BaseWebPart > context

BaseWebPart.context property

Use the context object to access common services and state associated with the component.

Signature:

readonly context: BaseWebPartContext;

Remarks

Child classes are expected to override this field by redeclaring it with a specialized type. It is meant to be a read-only property; the type cannot be declared as read-only in the base class (because it is initialized outside the constructor), but child classes should redeclare it as readonly.

⚠️ **GitHub.com Fallback** ⚠️