 | 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
Syntaxpublic static int iCanOpen(
CGXNETCore gxNetShared,
string file,
string user,
string password
)
public static int iCanOpen(
CGXNETCore gxNetShared,
string file,
string user,
string password
)
Public Shared Function iCanOpen (
gxNetShared As CGXNETCore,
file As String,
user As String,
password As String
) As Integer
Public Shared Function iCanOpen (
gxNetShared As CGXNETCore,
file As String,
user As String,
password As String
) As Integer
public:
static int iCanOpen(
CGXNETCore^ gxNetShared,
String^ file,
String^ user,
String^ password
)
public:
static int iCanOpen(
CGXNETCore^ gxNetShared,
String^ file,
String^ user,
String^ password
)
static member iCanOpen :
gxNetShared : CGXNETCore *
file : string *
user : string *
password : string -> int
static member iCanOpen :
gxNetShared : CGXNETCore *
file : string *
user : string *
password : string -> int
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