Share via


GlobalObjectProvider.GetGlobalObjects Method (Project)

Gets a collection of global objects for the specified project.

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

Syntax

'Declaration
Public Function GetGlobalObjects ( _
    project As Project _
) As GlobalObjectCollection
public GlobalObjectCollection GetGlobalObjects(
    Project project
)
public:
GlobalObjectCollection^ GetGlobalObjects(
    Project^ project
)
member GetGlobalObjects : 
        project:Project -> GlobalObjectCollection
public function GetGlobalObjects(
    project : Project
) : GlobalObjectCollection

Parameters

Return Value

Type: Microsoft.VisualStudio.Shell.Design.GlobalObjectCollection
A GlobalObjectCollection containing the global objects for the specified project.

Exceptions

Exception Condition
ArgumentNullException

project is nulla null reference (Nothing in Visual Basic).

InvalidOperationException

The implementation of GetGlobalObjectsCore returned nulla null reference (Nothing in Visual Basic).

Remarks

This version is equivalent to a call of GetGlobalObjects(project, null).

.NET Framework Security

See Also

Reference

GlobalObjectProvider Class

GetGlobalObjects Overload

Microsoft.VisualStudio.Shell.Design Namespace

GetGlobalTypes

GlobalObjectCollection

GlobalObject