Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- project 
 Type: EnvDTE.Project- The Project to obtain global objects from. 
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.