bool SemanticLayerDeletePattern(string mon, SemanticLayerPatternArg tArg)
mon. Moniker for working with preconfigured DBMS connection templates.
tArg. Settings of deleted preconfigured DBMS connection template.
The SemanticLayerDeletePattern operation deletes preconfigured DBMS connection template.
To execute the operation, in the mon field specify moniker of opened data model instance with the !Patterns postfix, and in the tArg.index field specify key of deleted template. The moniker can be obtained on executing the OpenSemanticLayer operation. Template key will be available in results of the SemanticLayerGetPatterns operation.
The operation results in the logical true if preconfigured template was deleted successfully.
Below is the example of deleting preconfigured DVMS connection template. The request contains moniker for working with preconfigured templates and template key. The response contains whether removal was successful.
{
"SemanticLayerDeletePattern" :
{
"mon" : "KPACNCCOCDBDGOAEFDJDAIBAMJFFBCDEDJLPICPCMCFDIKCG!M!S!PLDNOFGCOCDBDGOAEMEKOCGKLAEFDMALEOIGKKCECKAAGLFHC!Patterns",
"tArg" :
{
"index" : "358700"
}
}
}
{
"SemanticLayerDeletePatternResult" : "1"
}
public static bool SemanticLayerDeletePattern(string moniker, int? patternIndex)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tDel = new SemanticLayerDeletePattern()
{
tArg = new SemanticLayerPatternArg()
{
index = patternIndex
},
// Moniker for working with preconfigured templates
mon = moniker + "!Patterns"
};
// Delete preconfigured template
var result = somClient.SemanticLayerDeletePattern(tDel);
return result;
}
See also: