| 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.GXNetAssembly: geoengine.core.gxnet (in geoengine.core.gxnet.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(
string str1,
string str2,
string str3
)
Public Shared Function iCanOpenReadOnly (
str1 As String,
str2 As String,
str3 As String
) As Integer
public:
static int iCanOpenReadOnly(
String^ str1,
String^ str2,
String^ str3
)
static member iCanOpenReadOnly :
str1 : string *
str2 : string *
str3 : string -> int
Parameters
- str1
- Type: SystemString
name of the Database File to Open - str2
- Type: SystemString
Name of the user ("SUPER" normally) - str3
- Type: SystemString
Password of the user ("" normally)
Return Value
Type:
Int32See
GEO_BOOLConstantSee Also