GlobalObjectProvider.GetGlobalObjects Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
- 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
.