Compartilhar via


GlobalObjectCollection.Item Property

Gets or sets the item at the given index.

Namespace:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'Declaration
Public Default Property Item ( _
    index As Integer _
) As GlobalObject
public GlobalObject this[
    int index
] { get; set; }
public:
property GlobalObject^ default[int index] {
    GlobalObject^ get (int index);
    void set (int index, GlobalObject^ value);
}
member Item : 
        index:int -> GlobalObject with get, set
JScript does not support indexed properties.

Parameters

  • index
    Type: Int32

    The position of the requested item in the collection.

Property Value

Type: Microsoft.VisualStudio.Shell.Design.GlobalObject
The item.

Remarks

If index is nulla null reference (Nothing in Visual Basic), throws an ArgumentNullException. Throws NotSupportedException on a set operation if IsReadOnly returns true.

.NET Framework Security

See Also

Reference

GlobalObjectCollection Class

Microsoft.VisualStudio.Shell.Design Namespace