Public Overloads Function Search( _ ByVal searchString As String _ ) As IEnumerable(Of Item)
public IEnumerable<Item> Search( string searchString )
Parameters
- searchString
- the search string.
Public Overloads Function Search( _ ByVal searchString As String _ ) As IEnumerable(Of Item)
public IEnumerable<Item> Search( string searchString )
{
var gpItems = CoreModule.CurrentProject.Items.OfType<GeoprocessingProjectItem>();
// go through all the available toolboxes
foreach (var gpItem in gpItems)
{
var itemsInsideToolBox = gpItem.GetItems();
// then for each toolbox list the tools inside
foreach (var toolItem in itemsInsideToolBox)
{
string newTool = string.Join(";", [toolItem.Path, toolItem.Name]);
// do something with the newTool
// for example, add to a list to track or use them later
}
}
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)