Plumtree EDK (Enterprise Web Development Kit) 5.4.0 |

# IProjectManager.QueryProjects Method

Returns an array of projects with the specified project filter.

IProject[] QueryProjects(
IProjectFilter projectFilter
);

#### Parameters

projectFilter
  The project filter, used for querying projects by names; cannot be `null` and must contain a filter type and query order.

#### Return Value

An array of zero or more `IProject` objects.

#### Remarks

Different filter options can be set using the projectFilter.

Below sample code shows how to query for projects that contains "devkit" in its name.

    IProjectFilter projectFilter = projectManager.CreateProjectFilter();
    projectFilter.NameSearchText = "devkit";
    IProject[] returnProjects = projectManager.QueryProjcts(projectFilter);

#### Exceptions

Exception Type | Condition
--- | ---
CollaborationException | The method call resulted in an error.
SoapException | if there is a communication problem during the execution of the remote method call.

#### See Also

IProjectManager Interface | Plumtree.Remote.PRC.Collaboration.Project Namespace