Click or drag to resize
CDBiCanOpenReadOnly Method
This method checks whether it is possible to open a database in read-only mode.

Available since Oasis montaj version: 6.4.2
License: Available to anyone.  

Namespace: GeoEngine.Core.GXNetX
Assembly: geoengine.core.gxnetx (in geoengine.core.gxnetx.dll)
Notes
This method is useful to determine if another session already locked a database. By using this method before an OpenReadOnly_DB a GX may handle errors like this more gracefully.
Syntax
public static int iCanOpenReadOnly(
	CGXNETCore gxNetShared,
	string file,
	string user,
	string password
)

Parameters

gxNetShared
Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore
file
Type: SystemString
Name of the Database File to Open
user
Type: SystemString
Name of the user ("SUPER" normally)
password
Type: SystemString
Password of the user ("" normally)

Return Value

Type: Int32
See Also