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