Click or drag to resize

CDBiCanOpen Method

This method checks whether it is possible to open a database.

Namespace:  GeoEngine.Core.GXNetX
Assembly:  geoengine.core.gxnetx (in geoengine.core.gxnetx.dll) Version: 2024.2.0.25
Syntax
public static int iCanOpen(
	CGXNETCore gxNetShared,
	string file,
	string user,
	string password
)

public static int iCanOpen(
	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
Remarks
This method is useful to determine if another session already locked a database. By using this method before an Open_DB a GX may handle errors like this more gracefully.
See Also