Share via


IVstaHostObjectCollection.Item Property (String)

Gets the IVstaHostObject with the specified name.

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

Syntax

'Declaration
ReadOnly Default Property Item ( _
    name As String _
) As IVstaHostObject
'Usage
Dim instance As IVstaHostObjectCollection 
Dim name As String 
Dim value As IVstaHostObject 

value = instance(name)
IVstaHostObject this[
    string name
] { get; }
property IVstaHostObject^ default[String^ name] {
    IVstaHostObject^ get (String^ name);
}
JScript does not support indexed properties.

Parameters

  • name
    Type: System.String

    The name of the host object to retrieve.

Property Value

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

.NET Framework Security

See Also

Reference

IVstaHostObjectCollection Interface

IVstaHostObjectCollection Members

Item Overload

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