Server.Save Method
Saves all configuration parameters and profiles.
Description
The Save() method stores all server configuration parameters and profiles to the configuration file.
Syntax
public void Save();
Remarks
- Saves the complete server configuration
- Requires administrator permissions to write to protected files
- Use
ServerUtils.RunAsAdmin()if you need to run with elevated permissions
Example
Server server = new Server();
// Modify configuration
server.Binding.Port = 8080;
// Save changes
server.Save();