Compartilhar via


GlobalObjectProvider.GetGlobalTypesCore Method

Gets a collection of global types for the specified project that match the specified type.

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

Syntax

'Declaration
Protected Overridable Function GetGlobalTypesCore ( _
    project As Project _
) As GlobalTypeCollection
protected virtual GlobalTypeCollection GetGlobalTypesCore(
    Project project
)
protected:
virtual GlobalTypeCollection^ GetGlobalTypesCore(
    Project^ project
)
abstract GetGlobalTypesCore : 
        project:Project -> GlobalTypeCollection  
override GetGlobalTypesCore : 
        project:Project -> GlobalTypeCollection
protected function GetGlobalTypesCore(
    project : Project
) : GlobalTypeCollection

Parameters

Return Value

Type: Microsoft.VisualStudio.Shell.Design.GlobalTypeCollection
A GlobalTypeCollection containing the global types for the specified project.

Remarks

The GetGlobalTypesCore method is the internal worker method that the GetGlobalTypes wrapper method refers calls to. The default implementation returns an empty collection; derived classes must override this implementation.

To indicate the absence of any global objects meeting the specified criteria, GetGlobalTypesCore should return an empty collection; it should never return nulla null reference (Nothing in Visual Basic) or a collection with a nulla null reference (Nothing in Visual Basic) element.

.NET Framework Security

See Also

Reference

GlobalObjectProvider Class

Microsoft.VisualStudio.Shell.Design Namespace

GetGlobalObjectsCore

GetGlobalTypes