GlobalObjectProvider::GetGlobalTypes Method (Project^)
Visual Studio 2015
Gets a collection of global types for the specified project that match the specified type.
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Parameters
- project
-
Type:
EnvDTE::Project^
The Project to obtain global types from.
Return Value
Type: Microsoft.VisualStudio.Shell.Design::GlobalTypeCollection^A GlobalTypeCollection containing the global types for the specified project.
| Exception | Condition |
|---|---|
| ArgumentNullException | project is null. |
| InvalidOperationException | The implementation of GetGlobalTypesCore returned null. |
The GetGlobalTypes method provides a standard wrapper for the GetGlobalTypesCore method. GetGlobalTypes will ignore all except the most critical exceptions thrown by the core method, namely NullReferenceException, StackOverflowException, OutOfMemoryException and ThreadAbortException.
Show: