bool CloseMs(MsId tMs)
tMs. Opened modeling container instance moniker.
The CloseMs operation closes an instance of modeling container.
After execution the operation returns whether the object is closed successfully. Available values:
True. Modeling container is closed.
False. Modeling container is not closed.
The example of closing a modeling container instance. The request contains a container moniker. The response contains whether closing was successful.
{
"CloseMs" :
{
"tMs" :
{
"id" : "KJBJEFBHPOMOFOAEJIFPCMEAGCGHCBHEHIMMNOMFBAKHHEMP!M!S!CDIGHEHBHPOMOFOAEBJKDHOKMGGBEOFCELIIHKANJDKGFAHKL"
}
}
}
{
"CloseMsResult" : "1"
}
public static bool CloseMs(string moniker)
{
// Create a proxy object for operation execution
var somClient = new SomPortTypeClient();
// Set operation execution parameters
var tClose = new CloseMs()
{
tMs = new MsId() { id = moniker }
};
// Close modeling container
var result = somClient.CloseMs(tClose);
return result;
}
See also: