bool CloseSemanticLayer(string mon)
mon. Opened data model instance moniker.
The CloseSemanticLayer operation closes data model instance.
To execute the operation, in the mon field specify moniker of opened data model instance. The moniker can be obtained on executing the OpenSemanticLayer operation.
The operation results in the logical true if data model instance was closed successfully.
Below is the example of closing data model instance. The request contains moniker of opened data model instance. The response contains whether closing is successful.
{
"CloseSemanticLayer" :
{
"mon" : "ECLILKDCBLBDGOAEDKMFIAIDMENFPGPEHLJFNFCLBKCMGDDH!M!S!PODOLOLDCBLBDGOAEEKPLOFLBDLFCJDAEHINMBHIMJKOIAJPE"
}
}
{
"CloseSemanticLayerResult" : "1"
}
public static bool CloseSemanticLayer(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tClose = new CloseSemanticLayer()
{
mon = moniker
};
// Close data model instance
var b = somClient.CloseSemanticLayer(tClose);
return b;
}
See also: