GetCustomClassInspectorInfo

Syntax

GetClassInspectorInfoResult GetCustomClassInspectorInfo(MbId tMb, GetCustomClassInspectorInfoArg tArg)

Parameters

tMb. Repository connection moniker.

tArg. Operation execution parameters.

Description

The GetCustomClassInspectorInfo operation gets information about code elements from the custom development environment class inspector.

Comments

To execute the operation, in the tMb field specify repository connection moniker, and in the tArg field specify information about the assembly, from which custom class inspector information will be obtained. The moniker can be obtained on executing the OpenMetabase operation.

The operation results in the list of class inspector elements and information about code elements according to the specified information getting parameters.

Example

Below is the example of getting information from the custom class inspector about assembly contents with the specified key.

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">
<GetCustomClassInspectorInfo 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="">
  <path>118309</path>
  <member />
  </tArg>
  </GetCustomClassInspectorInfo>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetCustomClassInspectorInfoResult 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">
<subNodes xmlns="">
<it>
<info>
  <type>Interface</type>
  <name>ITest</name>
  <access>Private</access>
  </info>
  <hasSubNodes>0</hasSubNodes>
  </it>
<it>
<info>
  <type>Enum</type>
  <name>MyEnum</name>
  <access>Private</access>
  </info>
  <hasSubNodes>0</hasSubNodes>
  </it>
<it>
<info>
  <type>Class</type>
  <name>Test</name>
  <typeName>Object</typeName>
  <access>Private</access>
  </info>
  <hasSubNodes>1</hasSubNodes>
  </it>
  </subNodes>
<info xmlns="">
<it>
  <type>Function</type>
  <name>TestFunction</name>
  <typeName>Integer</typeName>
  <access>Private</access>
  <blocks />
  <imask>0</imask>
  </it>
<it>
  <type>Sub</type>
  <name>TestSub</name>
  <access>Private</access>
  <blocks />
  <imask>0</imask>
  </it>
  </info>
  <description xmlns="">Build <b>OBJ118309</b></description>
  </GetCustomClassInspectorInfoResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetCustomClassInspectorInfo" :
{
"tMb" :
{
"@type" : "q1:OpenMetabaseResult",
"id" : "COAALKJJBFIOFOAEOHJHMAKDHKFCMMDEEKIEPDMEAHENJCAH!M",
"sessKey" : "272175",
"sessCookie" : "C1",
"version" : "163",
"defLocale" : "1049",
"driver" : "2"
},
"tArg" :
{
"path" : "118309",
"member" : ""
}
}
}

JSON response:

{
"GetCustomClassInspectorInfoResult" :
{
"subNodes" :
{
"it" :
[
{
"info" :
{
"type" : "Interface",
"name" : "ITest",
"access" : "Private"
},
"hasSubNodes" : "0"
},
{
"info" :
{
"type" : "Enum",
"name" : "MyEnum",
"access" : "Private"
},
"hasSubNodes" : "0"
},
{
"info" :
{
"type" : "Class",
"name" : "Test",
"typeName" : "Object",
"access" : "Private"
},
"hasSubNodes" : "1"
}
]
},
"info" :
{
"it" :
[
{
"type" : "Function",
"name" : "TestFunction",
"typeName" : "Integer",
"access" : "Private",
"blocks" : "",
"imask" : "0"
},
{
"type" : "Sub",
"name" : "TestSub",
"access" : "Private",
"blocks" : "",
"imask" : "0"
}
]
},
"description" : "Build <b>OBJ118309<\/b>"
}
}
public static GetClassInspectorInfoResult GetCustomClassInspectorInfo(MbId mb, int modKey, string className = "", string classMember = "")
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetCustomClassInspectorInfo()
{
tMb = mb,
tArg = new GetCustomClassInspectorInfoArg()
{
path = modKey.ToString() + (className == "" ? "" : '.' + className),
member = classMember
}
};
// Get information from the custom class inspector
var result = somClient.GetCustomClassInspectorInfo(tGet);
return result;
}

See also:

Working with Development Environment