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 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 returns whether closing was successful.
{
"CloseWsp" :
{
"tWsp" :
{
"id" : "S1!M!S!WSP1"
}
}
}
{
"CloseWspResult" : "1"
}
public static bool CloseWorkspace(WspId moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tClose = new CloseWsp()
{
tWsp = moniker
};
//Closing workspace instance
var b = somClient.CloseWsp(tClose);
return b;
}
See also: