CloseDimSelectionSchema

Syntax

bool CloseDimSelectionSchema(OdId tOb)

Parameters

tOb. Opened selection schema instance moniker.

Description

The CloseDimSelectionSchema operation closes selection schema instance.

Comments

To execute the operation, in the tOb field specify moniker of the selection schema instance to be closed. The operation results in the logical True if the object was closed successfully.

Example

Below is the example of closing dictionary selection schema instance. The request contains the selection schema moniker. The response contains whether closing was successful.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<CloseDimSelectionSchema xmlns="http://www.fsight.ru/PP.SOM.Som">
<tOb xmlns="">
  <id>S1!M!S!DSS1</id>
  </tOb>
  </CloseDimSelectionSchema>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
  <CloseDimSelectionSchemaResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">1</CloseDimSelectionSchemaResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"CloseDimSelectionSchema" :
{
"tOb" :
{
"id" : "S1!M!S!DSS1"
}
}
}

JSON response:

{
"CloseDimSelectionSchemaResult" : "1"
}
public static bool CloseSelectionSchema(string moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tClose = new CloseDimSelectionSchema()
{
tOb = new OdId() { id = moniker },
};
//Close selection schema
var result = somClient.CloseDimSelectionSchema(tClose);
return result;
}

See also:

Working with Dictionaries