GlobalObjectService::GetGlobalTypes Method ()

 

Returns a collection of currently available global types.

Namespace:   Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

public:
GlobalTypeCollection^ GetGlobalTypes()

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.

Return to top
Show: