You can build up a graph expansion query to return data in three ways:
-
Full query expansion - The data is returned in a StructuredObjectCollection, which contains IObject results.
-
Partial query expansion - The data is returned in a LightReportingObjectCollection, which contains specific column sets of object results.
-
Count query expansion - The data is returned in a simple count of the objects at each graph node.
In each graph expansion type, a graph expansion request can be configured so that:
-
Graph expansion instances can be created from a given graph UID.
-
Starting objects for the expansion can be optionally supplied.
-
Criteria for each graph node can be optionally applied.
-
The resulting properties for each graph node can be optionally configured for a partial query expansion only.
For example:
' Run the full graph expansion
Dim lobjResults As StructuredObjectCollection = lobjGraphExpansionQuery.ExecuteExpansion()
' Run the partial graph expansion
Dim lobjResults As LightReportObjectCollection = lobjGraphExpansionQuery.ExecutePartialExpansion()
' Run the graph count
Dim lobjResults As GraphExpansionResult(Of Long, Long) = lobjGraphExpansionQuery.ExecuteCount()