This documentation is archived and is not being maintained.

IVsaItems Interface

Defines an interface for a collection of IVsaItem objects, which can be addressed either by name or by index.

For a list of all members of this type, see IVsaItems Members.

System.Collections.IEnumerable
   Microsoft.Vsa.IVsaItems

[Visual Basic]
<Guid("0AB1EB6A-12BD-44d0-B941-0580ADFC73DE")>
<InterfaceType(ComInterfaceType.InterfaceIsIUnknown)>
Public Interface IVsaItems
   Inherits IEnumerable
[C#]
[Guid("0AB1EB6A-12BD-44d0-B941-0580ADFC73DE")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsaItems : IEnumerable
[C++]
[Guid("0AB1EB6A-12BD-44d0-B941-0580ADFC73DE")]
[InterfaceType(ComInterfaceType::InterfaceIsIUnknown)]
public __gc __interface IVsaItems : public IEnumerable
[JScript]
public
   Guid("0AB1EB6A-12BD-44d0-B941-0580ADFC73DE")
 InterfaceType(ComInterfaceType.InterfaceIsIUnknown)
interface IVsaItems implements IEnumerable

Remarks

While not a true collection in the sense that it does not derive from the ICollection or IDictionary interfaces, the IVsaItems interface nevertheless serves functionally as a collection, while accommodating special semantic requirements for adding items.

Items in an IVsaItems collection can be addressed either by name, or by index; furthermore, they can be enumerated with constructs such as For Each...Next. As they are 0-based, valid indexes extend from 0 to n- 1, where n is the value of the IVsaItems.Count property. However, an item's index value will not necessarily remain constant; it will change as the collection itself changes. For example, an item that is at index position 3 may move to index position 2 if the item at index position 2 is removed.

The IVsaItems interface inherits from IEnumerable.

Use the IVsaItems interface when creating a collection of IVsaItem objects for a script engine.

Requirements

Namespace: Microsoft.Vsa

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Microsoft.Vsa (in Microsoft.Vsa.dll)

See Also

IVsaItems Members | Microsoft.Vsa Namespace | IVsaEngine | IVsaItem

Show: