$ps.file.createSection
Overview¶
Creates a specified section using "$ps.file" in "Server Script".
Prerequisites¶
DisableServerScriptFile in "Script.json" must be set to false.
Syntax¶
Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| section | string | Yes | Section name. For details on sections, see "About Sections" in "$ps.file". |
Return Value¶
Returns true if the section can be created, false if it cannot be created.
Exceptions¶
If an exception occurs in C#, the exception class name and error message are placed in the Error object in the server script to generate an exception.
Usage Examples¶
The following example creates a specified section in the web server.
JavaScript¶
Supported Versions¶
| Supported versions | Body |
|---|---|
| 1.4.12.0 and later | Added function |