The Config
property provides access to the configuration settings of a project within the Sandbox environment. This property is of type Sandbox.DataModel.ProjectConfig
, which encapsulates various configuration details pertinent to the project.
The Config
property provides access to the configuration settings of a project within the Sandbox environment. This property is of type Sandbox.DataModel.ProjectConfig
, which encapsulates various configuration details pertinent to the project.
To access the configuration of a project, you can use the Config
property of the Project
class. This property is read-only and provides a ProjectConfig
object that contains the configuration settings.
Note that this property is marked with the [JsonIgnore]
attribute, indicating that it will not be serialized when using JSON serialization.
// Accessing the configuration of the current project var projectConfig = Project.Current.Config; // Example usage of projectConfig if (projectConfig != null) { // Access specific configuration settings // e.g., projectConfig.SomeSetting }