Class ConfigurationManager
Manager in charge of storing, creating, copying, renaming, deleting, and fetching configurations. A configuration is a storage of the various preferences used by the application to determine various behaviors, paths, and options. A description of each property and its possible values can be found in the help of the configuration manager web interface.
Inherited Members
Namespace: inetsoftware.Config
Assembly: inetsoftware.Pdfc.dll
Syntax
public sealed class ConfigurationManager : BridgedObject
Properties
Current
The current Configuration. This method will never return null. Note that you can set null here, this will cause the default configuration to be used instead.
Declaration
public Configuration Current { get; set; }
Property Value
Type | Description |
---|---|
Configuration |
Instance
The singleton instance of the ConfigurationManager.
Declaration
public static ConfigurationManager Instance { get; }
Property Value
Type | Description |
---|---|
ConfigurationManager |
Methods
SetTemporaryProperties(IDictionary<String, String>)
Creates and returns a new temporary configuration called "<temp copy>", imports the given properties and sets the created configuration as the current configuration.
Declaration
public Configuration SetTemporaryProperties(IDictionary<string, string> props)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.String> | props | properties to pass the new configuration |
Returns
Type | Description |
---|---|
Configuration | New temporary Configuration |
SetTemporaryPropertiesFromUri(Uri)
Creates and returns a new temporary configuration called "<temp copy>", imports the given properties and sets the created configuration as the current configuration.
Declaration
public Configuration SetTemporaryPropertiesFromUri(Uri propsURL)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | propsURL | properties to pass the new configuration |
Returns
Type | Description |
---|---|
Configuration | New temporary Configuration |