Interface IConfiguration
Get values from the SuperOffice config section.
Namespace: SuperOffice.CRM
Assembly: SuperOffice.Plugins.dll
Syntax
public interface IConfiguration
Properties
DatabaseOwnerName
Company name of the database owner. "Example AS"
Declaration
string DatabaseOwnerName { get; }
Property Value
Type | Description |
---|---|
string |
DatabaseSerialNumber
Serial Number. "1230004569"
Declaration
string DatabaseSerialNumber { get; }
Property Value
Type | Description |
---|---|
string |
DatabaseType
"central", "satellite", or "travel"
Declaration
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
string NetServerVersionFullName { get; }
Property Value
Type | Description |
---|---|
string |
Methods
GetConfigBool(string)
True/False value from the application configuration file (web.config or superoffice.config)
Declaration
bool GetConfigBool(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | "SuperOffice/Diagnostics/LogError" |
Returns
Type | Description |
---|---|
bool | true or false from the web.config or superoffice.config file |
GetConfigInt(string)
Number value from the application configuration file (web.config or superoffice.config)
Declaration
int GetConfigInt(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | "SuperOffice/Database/Major" |
Returns
Type | Description |
---|---|
int | 123 from the web.config or superoffice.config file |
GetConfigString(string)
String value from the application configuration file (web.config or superoffice.config)
Declaration
string GetConfigString(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | "SuperOffice/Database/Server" |
Returns
Type | Description |
---|---|
string | "123" from the web.config or superoffice.config file |
HasLicense(string)
Does the system have the given license?
Declaration
bool HasLicense(string licenseName)
Parameters
Type | Name | Description |
---|---|---|
string | licenseName | License code name: "superoffice.server" or "superoffice.quote". Per user CAL licenses are not useful to check here. |
Returns
Type | Description |
---|---|
bool | true if the system has the given license |