bool CloseDatabase(OdId tOb)
tOb. Opened database instance moniker.
The CloseDatabase operation closes opened database instance.
To execute the operation, in the tOb field specify database instance moniker to be closed. The operation results in the logical True if the object was closed successfully.
The example of closing database instance. The request contains moniker of opened database instance. The response contains whether closing was successful.
{
"CloseDatabase" :
{
"tOb" :
{
"id" : "S1!M!S!DB4"
}
}
}
{
"CloseDatabaseResult" : "1"
}
public static bool CloseDB(string moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tClose = new CloseDatabase()
{
tOb = new OdId() { id = moniker }
};
//Close database instance
var b = somClient.CloseDatabase(tClose);
return b;
}
See also: