Show / Hide Table of Contents

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
Boolean

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
Int32

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
Boolean

true if the system has the given license

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top