1e41f4b71Sopenharmony_ci# @ohos.app.ability.ChildProcessOptions
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci子进程的启动配置选项。通过[childProcessManager](js-apis-app-ability-childProcessManager.md)启动子进程时,可以通过ChildProcessOptions配置子进程启动选项。
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ci> **说明:**
6e41f4b71Sopenharmony_ci> 
7e41f4b71Sopenharmony_ci> 本模块首批接口从API version 12开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
8e41f4b71Sopenharmony_ci> 
9e41f4b71Sopenharmony_ci> 本模块接口仅可在Stage模型下使用。
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ci## 导入模块
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ci```ts
14e41f4b71Sopenharmony_ciimport { ChildProcessOptions } from '@kit.AbilityKit';
15e41f4b71Sopenharmony_ci```
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ci## 属性
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ci**系统能力**:SystemCapability.Ability.AbilityRuntime.Core
20e41f4b71Sopenharmony_ci
21e41f4b71Sopenharmony_ci| 名称        | 类型      | 必填 | 说明                                                               |
22e41f4b71Sopenharmony_ci| ----------- | --------------------   | ---- | ---------------------------------------------------- |
23e41f4b71Sopenharmony_ci| isolationMode | boolean | 否 | 子进程是否运行在独立沙箱和网络环境中。默认为false,与主进程共享沙箱和网络环境。|
24e41f4b71Sopenharmony_ci
25e41f4b71Sopenharmony_ci**示例:**
26e41f4b71Sopenharmony_ci
27e41f4b71Sopenharmony_ci```ts
28e41f4b71Sopenharmony_ciimport { ChildProcessArgs, ChildProcessOptions, childProcessManager } from '@kit.AbilityKit';
29e41f4b71Sopenharmony_ci
30e41f4b71Sopenharmony_cilet args: ChildProcessArgs = {};
31e41f4b71Sopenharmony_cilet options: ChildProcessOptions = {
32e41f4b71Sopenharmony_ci  isolationMode: false
33e41f4b71Sopenharmony_ci};
34e41f4b71Sopenharmony_cichildProcessManager.startArkChildProcess("entry/./ets/process/DemoProcess.ets", args, options);
35e41f4b71Sopenharmony_ci```
36