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

‘선언
Public Default Property Item ( _
    index As Integer _
) As GlobalObject
    Get
    Set
‘사용 방법
Dim instance As GlobalObjectCollection
Dim index As Integer
Dim value As GlobalObject

value = instance(index)

instance(index) = value
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 : GlobalObject with get, set
JScript does not support indexed properties.

Parameters

  • index
    Type: System.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

GlobalObjectCollection Members

Microsoft.VisualStudio.Shell.Design Namespace