GlobalObjectProvider.GetGlobalObjects Method ()

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

'宣言
Public Function GetGlobalObjects ( _
    project As Project _
) As GlobalObjectCollection
'使用
Dim instance As GlobalObjectProvider
Dim project As Project
Dim returnValue As GlobalObjectCollection

returnValue = instance.GetGlobalObjects(project)
public GlobalObjectCollection GetGlobalObjects(
    Project project
)
public:
GlobalObjectCollection^ GetGlobalObjects(
    Project^ project
)
public function GetGlobalObjects(
    project : Project
) : GlobalObjectCollection

Parameters

  • project
    Type: 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 a null reference (Nothing in Visual Basic).

InvalidOperationException

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

Remarks

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

Permissions

See Also

Reference

GlobalObjectProvider Class

GlobalObjectProvider Members

GetGlobalObjects Overload

Microsoft.VisualStudio.Shell.Design Namespace

GetGlobalTypes

GlobalObjectCollection

GlobalObject