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
index
Type: System.Int32The index of the IVstaHostObject to retrieve
Property Value
Type: Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.Interop.IVstaHostObject
An IVstaHostObject object.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVstaHostObjectCollection Interface
IVstaHostObjectCollection Members
Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.Interop Namespace