Is connector
Checks that the value is an object of an MongoDB AddIn
- Parameters
- Advanced call ?
Function IsConnector(Val Value) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Value | - | Arbitrary | ✔ | Value to check |
Returns
Boolean - Is connector
This method has no additional advanced call parameters.
Caution
NOCLI: this method is not available in CLI version
1C:Enterprise/OneScript code example
Address = "127.0.0.1:1234";
Login = "bayselonarrend";
Password = "12we...";
Base = "main";
ConnectionParams = New Structure("authSource", "admin");
ConnectionString = OPI_MongoDB.GenerateConnectionString(Address, Base, Login, Password, ConnectionParams);
Connection = OPI_MongoDB.CreateConnection(ConnectionString);
Result = OPI_MongoDB.IsConnector(Connection);
Result
true