Below is the example of using the GetClassInspectorInfo operation for getting information about interface property. The request contains names of assembly, interface, and property. The help system URL is also sent. The response contains the obtained property information.
{
"GetClassInspectorInfo" :
{
"tMb" :
{
"@type" : "q1:OpenMetabaseResult",
"id" : "COAALKJJBFIOFOAEOHJHMAKDHKFCMMDEEKIEPDMEAHENJCAH!M",
"sessKey" : "272175",
"sessCookie" : "C1",
"version" : "163",
"defLocale" : "1049",
"driver" : "2"
},
"tArg" :
{
"path" : "System.IException",
"member" : "Message",
"helpAddress" : "https:\/\/help.fsight.ru\/ru\/"
}
}
}
{
"GetClassInspectorInfoResult" :
{
"subNodes" : "",
"description" : "https:\/\/help.fsight.ru\/ru\/\/MergedProjects\/ForeSys\/Interface\/IException\/IException.Message.htm"
}
}
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: