IVsaItems 接口

定义

注意

Use of this type is not recommended because it is being deprecated in Visual Studio 2005; there will be no replacement for this feature. Please see the ICodeCompiler documentation for additional help.

定义 IVsaItem 对象集合的接口,可通过名称或索引对其进行定位。Defines an interface for a collection of IVsaItem objects, which can be addressed either by name or by index.

public interface class IVsaItems : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("0AB1EB6A-12BD-44d0-B941-0580ADFC73DE")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsaItems : System.Collections.IEnumerable
[System.Runtime.InteropServices.Guid("0AB1EB6A-12BD-44d0-B941-0580ADFC73DE")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
[System.Obsolete("Use of this type is not recommended because it is being deprecated in Visual Studio 2005; there will be no replacement for this feature. Please see the ICodeCompiler documentation for additional help.")]
public interface IVsaItems : System.Collections.IEnumerable
[<System.Runtime.InteropServices.Guid("0AB1EB6A-12BD-44d0-B941-0580ADFC73DE")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsaItems = interface
    interface IEnumerable
[<System.Runtime.InteropServices.Guid("0AB1EB6A-12BD-44d0-B941-0580ADFC73DE")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
[<System.Obsolete("Use of this type is not recommended because it is being deprecated in Visual Studio 2005; there will be no replacement for this feature. Please see the ICodeCompiler documentation for additional help.")>]
type IVsaItems = interface
    interface IEnumerable
Public Interface IVsaItems
Implements IEnumerable
派生
属性
实现

属性

Count

获取指定集合的项数。Gets the number of items in the specified collection.

Item[Int32]

通过项的索引值从集合中获取项。Gets an item from the collection by its index value.

Item[String]

通过项的名称从集合中获取项。Gets an item from the collection by its name.

方法

CreateItem(String, VsaItemType, VsaItemFlag)

按照 VsaItemType 枚举中的定义,创建其中一个IVsaItem 类型的新实例。Creates a new instance of one of the IVsaItem types, as defined in the VsaItemType enumeration.

GetEnumerator()

返回循环访问集合的枚举数。Returns an enumerator that iterates through a collection.

(继承自 IEnumerable)
Remove(Int32)

从集合中移除按照项的索引值指定的项。Removes an item from the collection, as specified by its index value.

Remove(String)

从集合中移除按照项的名称指定的项。Removes an item from the collection, as specified by its name.

扩展方法

Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于