FindInClassInspectorResult FindInClassInspector(MbId tMb, FindInClassInspectorArg tArg)
tMb. Repository connection moniker.
tArg. Operation execution parameters.
The FindInClassInspector operation searches in the 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 class inspector elements.
Below is the example of searching in the class inspector. The request contains the searched string. The response contains the list of elements with search results.
{
"FindInClassInspector" :
{
"tMb" :
{
"@type" : "q1:OpenMetabaseResult",
"id" : "COAALKJJBFIOFOAEOHJHMAKDHKFCMMDEEKIEPDMEAHENJCAH!M",
"sessKey" : "272175",
"sessCookie" : "C1",
"version" : "163",
"defLocale" : "1049",
"driver" : "2"
},
"tArg" :
{
"currentLine" :
{
"Assembly" : ""
},
"findString" : "CalendarLevelSet"
}
}
}
{
"FindInClassInspectorResult" :
{
"result" :
{
"it" :
[
{
"Assembly" : "Cubes",
"Element" : "CubeMetaCopierClass.ICubeMetaCopier",
"Member" :
{
"type" : "Property",
"name" : "CalendarLevelSet",
"typeName" : "DimCalendarLevelSet",
"access" : "Public",
"imask" : "0"
}
},
{
"Assembly" : "Cubes",
"Element" : "CubeMetaExporterClass.ICubeMetaExporter",
"Member" :
{
"type" : "Property",
"name" : "CalendarLevelSet",
"typeName" : "DimCalendarLevelSet",
"access" : "Public",
"imask" : "0"
}
},
{
"Assembly" : "Cubes",
"Element" : "ICubeMetaCopier",
"Member" :
{
"type" : "Property",
"name" : "CalendarLevelSet",
"typeName" : "DimCalendarLevelSet",
"access" : "Public",
"imask" : "0"
}
},
{
"Assembly" : "Cubes",
"Element" : "ICubeMetaExporter",
"Member" :
{
"type" : "Property",
"name" : "CalendarLevelSet",
"typeName" : "DimCalendarLevelSet",
"access" : "Public",
"imask" : "0"
}
},
{
"Assembly" : "Cubes",
"Element" : "IExportRequestParams",
"Member" :
{
"type" : "Property",
"name" : "CalendarLevelSet",
"typeName" : "DimCalendarLevelSet",
"access" : "Public",
"imask" : "0"
}
},
{
"Assembly" : "Cubes",
"Element" : "IImportRequestRubricatorParams",
"Member" :
{
"type" : "Property",
"name" : "CalendarLevelSet",
"typeName" : "DimCalendarLevelSet",
"access" : "Public",
"imask" : "0"
}
},
{
"Assembly" : "Dimensions",
"Element" : "DimCalendarLevelSet"
}
]
},
"posAtResult" : "0"
}
}
public static FindInClassInspectorResult FindInClassInspector(MbId mb, string find)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tFind = new FindInClassInspector()
{
tMb = mb,
tArg = new FindInClassInspectorArg()
{
findString = find,
currentLine = new ClassInspectorLine()
{
Assembly = ""
}
}
};
// Search in class inspector
var result = somClient.FindInClassInspector(tFind);
return result;
}
See also: