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

'宣言
Protected Overridable Function GetGlobalTypesCore ( _
    project As Project _
) As GlobalTypeCollection
'使用
Dim project As Project
Dim returnValue As GlobalTypeCollection

returnValue = Me.GetGlobalTypesCore(project)
protected virtual GlobalTypeCollection GetGlobalTypesCore(
    Project project
)
protected:
virtual GlobalTypeCollection^ GetGlobalTypesCore(
    Project^ project
)
protected function GetGlobalTypesCore(
    project : Project
) : GlobalTypeCollection

Parameters

  • project
    Type: Project

    The Project from which to obtain global types.

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 a null reference (Nothing in Visual Basic) or a collection with a a null reference (Nothing in Visual Basic) element.

Permissions

See Also

Reference

GlobalObjectProvider Class

GlobalObjectProvider Members

Microsoft.VisualStudio.Shell.Design Namespace

GetGlobalObjectsCore

GetGlobalTypes