Partager via


GlobalObjectProvider.GetGlobalObjects, méthode (Project)

Obtient une collection d'objets globaux pour le projet spécifié.

Espace de noms :  Microsoft.VisualStudio.Shell.Design
Assembly :  Microsoft.VisualStudio.Shell.Design (dans Microsoft.VisualStudio.Shell.Design.dll)

Syntaxe

'Déclaration
Public Function GetGlobalObjects ( _
    project As Project _
) As GlobalObjectCollection
public GlobalObjectCollection GetGlobalObjects(
    Project project
)

Paramètres

Valeur de retour

Type : Microsoft.VisualStudio.Shell.Design.GlobalObjectCollection
GlobalObjectCollection contenant les objets globaux pour le projet spécifié.

Exceptions

Exception Condition
ArgumentNullException

project a la valeur nullRéférence Null (Nothing en Visual Basic).

InvalidOperationException

L'implémentation d'GetGlobalObjectsCore est retournée nullRéférence Null (Nothing en Visual Basic).

Remarques

Cette version est équivalente à un appel d'GetGlobalObjects(project, null).

Sécurité .NET Framework

Voir aussi

Référence

GlobalObjectProvider Classe

GetGlobalObjects, surcharge

Microsoft.VisualStudio.Shell.Design, espace de noms

GetGlobalTypes

GlobalObjectCollection

GlobalObject