次の方法で共有


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
public GlobalObjectCollection GetGlobalObjects(
    Project project
)

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