bool CloseCustomOb(CustomObId tCustomOb)
tCustomOb. Moniker of opened custom class object instance.
The CloseCustomOb operation closes a custom class object instance.
To execute the operation, in the tCustomOb field specify moniker of opened custom class object instance. The moniker can be obtained on executing the OpenCustomOb operation.
The operation results in the logical True if the object instance was closed successfully.
The example of closing a custom class object. The request contains object moniker. The response contains whether the closing is successful.
{
"CloseCustomOb" :
{
"tCustomOb" :
{
"id" : "LDPFDGAHAHHCGOAEBAFLLHKHMOALEEDEMKDKCJAAKNELDHAE!M!S!TGHNHGJAHAHHCGOAENBPOBGJCGMEKKAFEILDEOPPCHPKFAHNO"
}
}
}
{
"CloseCustomObResult" : "1"
}
public static bool CloseCustom(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tClose = new CloseCustomOb()
{
tCustomOb = new CustomObId() { id = moniker }
};
// Close custom class object instance
var tResult = somClient.CloseCustomOb(tClose);
return tResult;
}
See also: