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.StringThe name of the host object to retrieve.
Property Value
Type: Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.Interop.IVstaHostObject
An IVstaHostObject.
.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