Share via


IVstaHostObjectCollection.Item Property (Int32)

Gets the host object at the specified index location.

Namespace:  Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.Interop
Assembly:  Microsoft.VisualStudio.Tools.Applications.ProgrammingModel (in Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.dll)

Syntax

'Declaration
Default Property Item ( _
    index As Integer _
) As IVstaHostObject
'Usage
Dim instance As IVstaHostObjectCollection 
Dim index As Integer 
Dim value As IVstaHostObject 

value = instance(index)

instance(index) = value
IVstaHostObject this[
    int index
] { get; set; }
property IVstaHostObject^ default[int index] {
    IVstaHostObject^ get (int index);
    void set (int index, IVstaHostObject^ value);
}
JScript does not support indexed properties.

Parameters

Property Value

Type: Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.Interop.IVstaHostObject
An IVstaHostObject object.

.NET Framework Security

See Also

Reference

IVstaHostObjectCollection Interface

IVstaHostObjectCollection Members

Item Overload

Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.Interop Namespace