FindInCustomClassInspector

Syntax

FindInClassInspectorResult FindInCustomClassInspector(MbId tMb, FindInCustomClassInspectorArg tArg)

Parameters

tMb. Repository connection moniker.

tArg. Operation execution parameters.

Description

The FindInCustomClassInspector operation searches in the custom class inspector.

Comments

To execute the operation, in the tMb field specify repository connection moniker, and in the tArg field specify code element search options. The moniker can be obtained on executing the OpenMetabase operation.

The operation results in the list of found element of the custom class inspector.

Example

Below is the example of searching in the custom class inspector. The request contains moniker of opened repository connection and search information. The response contains the list of elements with search results.

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">
<FindInCustomClassInspector xmlns="http://www.fsight.ru/PP.SOM.Som">
<tMb xsi:type="q1:OpenMetabaseResult" xmlns="" xmlns:q1="http://www.fsight.ru/PP.SOM.Som">
  <id>COAALKJJBFIOFOAEOHJHMAKDHKFCMMDEEKIEPDMEAHENJCAH!M</id>
  <sessKey>272175</sessKey>
  <sessCookie>C1</sessCookie>
  <version>163</version>
  <defLocale>1049</defLocale>
  <driver>2</driver>
  </tMb>
<tArg xmlns="">
<currentLine>
  <Assembly />
  </currentLine>
  <findString>test</findString>
  <ids>OBJ118309</ids>
  </tArg>
  </FindInCustomClassInspector>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<FindInCustomClassInspectorResult 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">
<result xmlns="">
<it>
  <Assembly>OBJ118309</Assembly>
  <Element />
<Member>
  <type>Function</type>
  <name>TestFunction</name>
  <typeName>Integer</typeName>
  <access>Private</access>
  <blocks />
  <imask>0</imask>
  </Member>
  </it>
<it>
  <Assembly>OBJ118309</Assembly>
  <Element />
<Member>
  <type>Sub</type>
  <name>TestSub</name>
  <access>Private</access>
  <blocks />
  <imask>0</imask>
  </Member>
  </it>
<it>
  <Assembly>OBJ118309</Assembly>
  <Element>ITest</Element>
  </it>
<it>
  <Assembly>OBJ118309</Assembly>
  <Element>ITest</Element>
<Member>
  <type>Sub</type>
  <name>Test</name>
  <access>Private</access>
  <imask>0</imask>
  </Member>
  </it>
<it>
  <Assembly>OBJ118309</Assembly>
  <Element>Test</Element>
  </it>
<it>
  <Assembly>OBJ118309</Assembly>
  <Element>Test</Element>
<Member>
  <type>Sub</type>
  <name>Test</name>
  <access>Private</access>
  <blocks />
  <imask>0</imask>
  </Member>
  </it>
<it>
  <Assembly>OBJ118309</Assembly>
  <Element>Test.ITest</Element>
  </it>
<it>
  <Assembly>OBJ118309</Assembly>
  <Element>Test.ITest</Element>
<Member>
  <type>Sub</type>
  <name>Test</name>
  <access>Private</access>
  <imask>0</imask>
  </Member>
  </it>
  </result>
  <posAtResult xmlns="">0</posAtResult>
  </FindInCustomClassInspectorResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"FindInCustomClassInspector" :
{
"tMb" :
{
"@type" : "q1:OpenMetabaseResult",
"id" : "COAALKJJBFIOFOAEOHJHMAKDHKFCMMDEEKIEPDMEAHENJCAH!M",
"sessKey" : "272175",
"sessCookie" : "C1",
"version" : "163",
"defLocale" : "1049",
"driver" : "2"
},
"tArg" :
{
"currentLine" :
{
"Assembly" : ""
},
"findString" : "test",
"ids" : "OBJ118309"
}
}
}

JSON response:

{
"FindInCustomClassInspectorResult" :
{
"result" :
{
"it" :
[
{
"Assembly" : "OBJ118309",
"Element" : "",
"Member" :
{
"type" : "Function",
"name" : "TestFunction",
"typeName" : "Integer",
"access" : "Private",
"blocks" : "",
"imask" : "0"
}
},
{
"Assembly" : "OBJ118309",
"Element" : "",
"Member" :
{
"type" : "Sub",
"name" : "TestSub",
"access" : "Private",
"blocks" : "",
"imask" : "0"
}
},
{
"Assembly" : "OBJ118309",
"Element" : "ITest"
},
{
"Assembly" : "OBJ118309",
"Element" : "ITest",
"Member" :
{
"type" : "Sub",
"name" : "Test",
"access" : "Private",
"imask" : "0"
}
},
{
"Assembly" : "OBJ118309",
"Element" : "Test"
},
{
"Assembly" : "OBJ118309",
"Element" : "Test",
"Member" :
{
"type" : "Sub",
"name" : "Test",
"access" : "Private",
"blocks" : "",
"imask" : "0"
}
},
{
"Assembly" : "OBJ118309",
"Element" : "Test.ITest"
},
{
"Assembly" : "OBJ118309",
"Element" : "Test.ITest",
"Member" :
{
"type" : "Sub",
"name" : "Test",
"access" : "Private",
"imask" : "0"
}
}
]
},
"posAtResult" : "0"
}
}
public static FindInClassInspectorResult FindInCustomClassInspector(MbId mb, string find, string objectsIds)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tFind = new FindInCustomClassInspector()
{
tMb = mb,
tArg = new FindInCustomClassInspectorArg()
{
findString = find,
ids = objectsIds,
currentLine = new ClassInspectorLine()
{
Assembly = ""
}
}
};
// Search in the custom class inspector
var result = somClient.FindInCustomClassInspector(tFind);
return result;
}

See also:

Working with Development Environment