bool CloseSeg(SegId tSeg)
tSeg. Cube segment instance moniker.
The CloseSeg operation closes a cube segment instance.
To execute the operation, in the tSeg field specify segment instance moniker. The moniker can be obtained after executing the OpenSeg operation.
The operation results in the logical True if the object was closed successfully.
Below is the example of closing cube segment instance. The request contains moniker of opened segment instance. The response contains whether closing was successful.
{
"CloseSeg" :
{
"tSeg" :
{
"id" : "FLEDMHBOCLDPFOAEDMFBLHBLOEJDMKEEKKHHKBBDHHIFPONM!M!S!CNOKHLMBOCLDPFOAECLPBNGOGGLICIMAEJIEMIFKOCDIBJKCM"
}
}
}
{
"CloseSegResult" : "1"
}
public static bool CloseSeg(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tClose = new CloseSeg()
{
tSeg = new SegId() { id = moniker }
};
// Close cube segment
var b = somClient.CloseSeg(tClose);
return b;
}
See also: