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
- project
Type : EnvDTE.Project
Project pour obtenir les objets globaux de.
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
- Confiance totale accordée à l'appelant immédiat. Ce membre ne peut pas être utilisé par du code d'un niveau de confiance partiel. Pour plus d'informations, consultez Utilisation de bibliothèques à partir de code d'un niveau de confiance partiel.