GlobalObjectService::GetGlobalTypes Method ()
Visual Studio 2015
Returns a collection of currently available global types.
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Return Value
Type: Microsoft.VisualStudio.Shell.Design::GlobalTypeCollection^A GlobalTypeCollection containing the currently available global types.
| Exception | Condition |
|---|---|
| NotSupportedException | One of the queried global service provider factories returned null provider or provider collection. |
The GetGlobalTypes method returns a GlobalTypeCollection of the currently available GlobalType class. This collection is created each time this method is called. When the method is called, the method synchronizes the collection with the set of global object providers.
GetGlobalTypes never returns null; if there are no currently available global types, this method returns an empty collection.
Show: