GlobalObjectCollection.Item, propriété

Obtient ou définit l'élément à l'index donné.

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

Syntaxe

'Déclaration
Public Default Property Item ( _
    index As Integer _
) As GlobalObject
public GlobalObject this[
    int index
] { get; set; }

Paramètres

  • index
    Type : System.Int32
    La position de l'élément demandé dans la collection.

Valeur de propriété

Type : Microsoft.VisualStudio.Shell.Design.GlobalObject
Élément.

Remarques

Si index est nullRéférence Null (Nothing en Visual Basic), lève ArgumentNullException.Lève NotSupportedException sur une opération d'set si IsReadOnly retourne true.

Sécurité .NET Framework

Voir aussi

Référence

GlobalObjectCollection Classe

Microsoft.VisualStudio.Shell.Design, espace de noms