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

‘선언
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
)
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

GlobalObjectProvider Members

GetGlobalObjects Overload

Microsoft.VisualStudio.Shell.Design Namespace

GetGlobalTypes

GlobalObjectCollection

GlobalObject