Compartilhar via


GlobalObjectProvider.GetGlobalObjects Method

Definition

Overloads

GetGlobalObjects(Project)

Gets a collection of global objects for the specified project.

GetGlobalObjects(Project, Type)

Gets a collection of global objects for the specified project that match the specified type.

GetGlobalObjects(Project)

Gets a collection of global objects for the specified project.

public:
 Microsoft::VisualStudio::Shell::Design::GlobalObjectCollection ^ GetGlobalObjects(EnvDTE::Project ^ project);
public Microsoft.VisualStudio.Shell.Design.GlobalObjectCollection GetGlobalObjects (EnvDTE.Project project);
member this.GetGlobalObjects : EnvDTE.Project -> Microsoft.VisualStudio.Shell.Design.GlobalObjectCollection
Public Function GetGlobalObjects (project As Project) As GlobalObjectCollection

Parameters

project
Project

The Project to obtain global objects from.

Returns

A GlobalObjectCollection containing the global objects for the specified project.

Exceptions

project is null.

The implementation of GetGlobalObjectsCore(Project, Type) returned null.

Applies to

GetGlobalObjects(Project, Type)

Gets a collection of global objects for the specified project that match the specified type.

public:
 Microsoft::VisualStudio::Shell::Design::GlobalObjectCollection ^ GetGlobalObjects(EnvDTE::Project ^ project, Type ^ baseType);
public Microsoft.VisualStudio.Shell.Design.GlobalObjectCollection GetGlobalObjects (EnvDTE.Project project, Type baseType);
member this.GetGlobalObjects : EnvDTE.Project * Type -> Microsoft.VisualStudio.Shell.Design.GlobalObjectCollection
Public Function GetGlobalObjects (project As Project, baseType As Type) As GlobalObjectCollection

Parameters

project
Project

The Project to obtain global objects from.

baseType
Type

The Type of the GlobalObject to filter on. Can be null to indicate no filtering.

Returns

A GlobalObjectCollection containing the global objects of the specified Type for the specified project.

Exceptions

project is null.

The implementation of GetGlobalObjectsCore(Project, Type) returned null.

Applies to