1# WorkSchedulerExtensionContext 2 3The **WorkSchedulerExtensionContext** module, inherited from [ExtensionContext](../apis-ability-kit/js-apis-inner-application-extensionContext.md), provides a context environment for the WorkSchedulerExtensionAbility. 4 5This module provides APIs for accessing the resources of a WorkSchedulerExtensionAbility. 6 7> **NOTE** 8> 9> The initial APIs of this module are supported since API version 10. Newly added APIs will be marked with a superscript to indicate their earliest API version. 10> The APIs of this module can be used only in the stage model. 11 12## Usage 13 14The context is obtained through a WorkSchedulerExtensionAbility child class instance. 15 16```ts 17import WorkSchedulerExtensionAbility from '@ohos.WorkSchedulerExtensionAbility'; 18import workScheduler from '@ohos.resourceschedule.workScheduler'; 19 20class MyWorkSchedulerExtensionAbility extends WorkSchedulerExtensionAbility { 21 onWorkStart(workInfo: workScheduler.WorkInfo) { 22 let WorkSchedulerExtensionContext = this.context; // Obtain the WorkSchedulerExtensionContext. 23 } 24} 25``` 26