Config Members

<< Click to Display Table of Contents >>

Navigation:  Reference > BNCS Namespace > Config Class >

Config Members

The Config type exposes the following members.

 

Methods


Name

Description

Public method Static member

GetInstance

Retrieves an instance based on the provided InstanceId.

Public method Static member

GetInstanceByAltId

Retrieves an instance from the instancesList based on the provided AltId.

Public method Static member

GetInstances

Retrieves an array of instances.

Public method Static member

GetInstancesOfType

Retrieves an array of instances of a specified type.

Public method Static member

GetThisWorkstation

Retrieves the workstation with the specified ID.

Public method Static member

GetWorkstation

Retrieves a Workstation object based on the provided workstationId.

Public method Static member

GetWorkstations

Retrieves an array of Workstation objects.

 

Properties


Name

Description

Public property Static member

BNCSConfigPath

Gets the path to the BNCS configuration folder.

Public property Static member

BNCSDatabasePath

Gets the path to the BNCS database.

Public property Static member

BNCSDataPath

Gets the path to the BNCS data directory.

Public property Static member

BNCSDeviceTypePath

Gets the path to the device types configuration folder within the BNCS system path.

Public property Static member

BNCSSystemName

Gets the BNCSSystemName from the environment variable "CC_SYSTEM".

Public property Static member

BNCSSystemPath

Gets the path to the BNCSSystem directory by combining the CC_ROOT and CC_SYSTEM environment variables.

Public property Static member

BNCSWorkstationId

Gets the BNCS Workstation ID from the environment variable "CC_WORKSTATION". If the value is a valid unsigned integer, it returns that value. If the value is not a valid unsigned integer, it returns 0.

Public property Static member

InstancesFile

Gets the path to the instances.xml file located in the BNCSConfigPath directory. If the file does not exist, a FileNotFoundException is thrown.

Public property Static member

WorkstationSettingsFile

Gets the path to the workstation settings file.

Public property Static member

WorkstationsFile

Gets the path to the workstations file.

 

See Also


Config Class

BNCS Namespace