FindInClassInspectorResult FindInCustomClassInspector(MbId tMb, FindInCustomClassInspectorArg tArg)
tMb. Repository connection moniker.
tArg. Operation execution parameters.
The FindInCustomClassInspector operation searches in the custom class inspector.
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.
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.
{
"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"
}
}
}
{
"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: