1# AbilityStageContext 2 3The **AbilityStageContext** module, inherited from [Context](js-apis-inner-application-context.md), implements the context of an ability stage. 4 5This module provides APIs for accessing a specific ability stage. You can use the APIs to obtain the **ModuleInfo** object and environment configuration of an ability stage. 6 7> **NOTE** 8> 9> The initial APIs of this module are supported since API version 9. 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## Modules to Import 13 14```ts 15import common from '@ohos.app.ability.common'; 16``` 17 18## Usage 19 20The ability stage context is obtained through an **AbilityStage** instance. 21 22```ts 23import AbilityStage from '@ohos.application.AbilityStage'; 24class MyAbilityStage extends AbilityStage { 25 onCreate() { 26 let abilityStageContext = this.context; 27 } 28} 29``` 30 31## Attributes 32 33**System capability**: SystemCapability.Ability.AbilityRuntime.Core 34 35| Name| Type| Readable| Writable| Description| 36| -------- | -------- | -------- | -------- | -------- | 37| currentHapModuleInfo | [HapModuleInfo](js-apis-bundleManager-hapModuleInfo.md) | Yes| No| **ModuleInfo** object corresponding to the **AbilityStage**.| 38| config | [Configuration](js-apis-app-ability-configuration.md) | Yes| No| Configuration for the environment where the application is running.| 39