Click or drag to resize

CDBiCanOpenReadOnly Method

This method checks whether it is possible to open a database in read-only mode.

Namespace:  GeoEngine.Core.GXNet
Assembly:  geoengine.core.gxnet (in geoengine.core.gxnet.dll) Version: 2024.2.0.25
Syntax
public static int iCanOpenReadOnly(
	string file,
	string user,
	string password
)

public static int iCanOpenReadOnly(
	string file,
	string user,
	string password
)

Parameters

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
Remarks
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.
See Also