BCTaskObject OnConnect Method Meridian Enterprise 2013 Developer's Guide | BlueCielo ECM Solutions
Called when the Task server connects to a vault.

Namespace: BlueCieloECM.InnoCielo.Meridian.Server
Assembly: BlueCieloECM.InnoCielo.Meridian (in BlueCieloECM.InnoCielo.Meridian.dll) Version: 1.4.0.0 (1.4.53.0)
Syntax

protected virtual bool OnConnect(
	ref string machineName,
	ref string vaultOrDataStoreName,
	ref string workAreaID,
	ref string userName,
	out string password
)

Parameters

machineName
Type: OnlineSystem String 
The name of the server machine. If   or an empty string, then a local machine is used.
vaultOrDataStoreName
Type: OnlineSystem String 
The name of the vault or data store. If   or an empty string, then the default vault will be opened.
workAreaID
Type: OnlineSystem String 
The ID property value of a work area in the vault. If   or an empty string, then the vault will be opened in the context of the main area.
userName
Type: OnlineSystem String 
On input, the name of the user who submitted the task. On output, the name of the user account that will be used to connect to the vault.
password
Type: OnlineSystem String 
The password for the user account that will be used to connect to the vault.

Return Value

A value indicating whether the access to a vault is required.
Remarks

If access to a vault is required, return   and modify parameters that defines a vault to which to connect (on input these parameters are defined by the client application that submitted the task).

By default, the connection is made from behalf of the user account of the Task Server (usually 'SYSTEM'). To use another account override the method and specify correct userName and password.

See Also