Below is the example of using the GetClassInspectorInfo operation for getting information about interface members. The request contains assembly and interface names. The response contains a list of code elements and information about them.
{
"GetClassInspectorInfo" :
{
"tMb" :
{
"@type" : "q1:OpenMetabaseResult",
"id" : "COAALKJJBFIOFOAEOHJHMAKDHKFCMMDEEKIEPDMEAHENJCAH!M",
"sessKey" : "272175",
"sessCookie" : "C1",
"version" : "163",
"defLocale" : "1049",
"driver" : "2"
},
"tArg" :
{
"path" : "System.IException",
"member" : "",
"helpAddress" : ""
}
}
}
{
"GetClassInspectorInfoResult" :
{
"subNodes" : "",
"info" :
{
"it" :
[
{
"type" : "Property",
"name" : "Line",
"typeName" : "Integer",
"access" : "Public",
"imask" : "0"
},
{
"type" : "Property",
"name" : "Message",
"typeName" : "String",
"access" : "Public",
"imask" : "0"
},
{
"type" : "Property",
"name" : "MessageID",
"typeName" : "Integer",
"access" : "Public",
"imask" : "0"
},
{
"type" : "Property",
"name" : "NestedException",
"typeName" : "IException",
"access" : "Public",
"imask" : "0"
},
{
"type" : "Sub",
"name" : "ReportError",
"access" : "Public",
"imask" : "0"
},
{
"type" : "Property",
"name" : "Source",
"typeName" : "String",
"access" : "Public",
"imask" : "0"
}
]
},
"description" : "<b>Interface <\/b>IException<br \/> Member of the System unit"
}
}
public static GetClassInspectorInfoResult GetClassInspectorInfo(MbId mb, string assembly, string parentName = "", string classMember = "", string helpUrl = "")
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetClassInspectorInfo()
{
tMb = mb,
tArg = new GetClassInspectorInfoArg()
{
path = assembly + (parentName == "" ? "" : '.' + parentName),
member = classMember,
helpAddress = helpUrl
}
};
// Get information from class inspector
var result = somClient.GetClassInspectorInfo(tGet);
return result;
}
See also: