Class Configuration
Exposes configuration to plugins
Implements
Inherited Members
Namespace: SuperOffice.Configuration
Assembly: SoDataBase.dll
Syntax
public class Configuration : IConfiguration
Constructors
Configuration()
Declaration
public Configuration()
Properties
DatabaseOwnerName
Company name of the database owner. "SuperOffice AS"
Declaration
public string DatabaseOwnerName { get; }
Property Value
Type | Description |
---|---|
String |
DatabaseSerialNumber
Serial Number "1230004569"
Declaration
public string DatabaseSerialNumber { get; }
Property Value
Type | Description |
---|---|
String |
DatabaseType
"central", "satellite", or "travel"
Declaration
public string DatabaseType { get; }
Property Value
Type | Description |
---|---|
String |
NetServerVersionFullName
Full name of this version of NetServer: "SuperOffice NetServer 7.1 Release (Build: 7.1.200.300.TEST})"
Declaration
public string NetServerVersionFullName { get; }
Property Value
Type | Description |
---|---|
String |
Methods
GetConfigBool(String)
True/False value from the configuration
Declaration
public bool GetConfigBool(string path)
Parameters
Type | Name | Description |
---|---|---|
String | path | "SuperOffice/Database/Major |
Returns
Type | Description |
---|---|
Boolean | true or false from the web.config or superoffice.config file |
GetConfigInt(String)
Number value from the configuration
Declaration
public int GetConfigInt(string path)
Parameters
Type | Name | Description |
---|---|---|
String | path | "SuperOffice/Database/Major |
Returns
Type | Description |
---|---|
Int32 | 123 from the web.config or superoffice.config file |
GetConfigString(String)
String value from the configuration
Declaration
public string GetConfigString(string path)
Parameters
Type | Name | Description |
---|---|---|
String | path | "SuperOffice/Database/Major |
Returns
Type | Description |
---|---|
String | "123" from the web.config or superoffice.config file |
HasLicense(String)
Does the system have the given license?
Declaration
public bool HasLicense(string licenseName)
Parameters
Type | Name | Description |
---|---|---|
String | licenseName | License code name: "superoffice.server" or "superoffice.quote". CAL licenses are not useful to check here. |
Returns
Type | Description |
---|---|
Boolean | true if the system has the given license |