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