bool CloseWsp(WspId tWsp)
tWsp. Moniker of closed workspace instance.
The CloseWsp operation closes workspace instance.
To execute the operation, in the tWsp field specify moniker of the workspace instance to be closed. The moniker can be obtained on executing the OpenWsp operation.
The operation results in the logical True if the object was closed successfully.
Below is the example of closing workspace instance. The response contains the moniker of opened workspace instance. The response contains whether the context is successfully closed.
{
"CloseWsp" :
{
"tWsp" :
{
"id" : "CIMJHKLEBJECGOAEDDAIHBNBMCJPBEIEDLDBMALGIAOFGHDO!M!S!WSPMCLOGNLEBJECGOAEIIMMCOLKFIOGIGNEPLNLFCEAJGEIEIBG"
}
}
}
{
"CloseWspResult" : "1"
}
public static bool CloseWorkspace(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tClose = new CloseWsp()
{
tWsp = new WspId() { id = moniker }
};
// Close workspace instance
var b = somClient.CloseWsp(tClose);
return b;
}
See also: