IVsaItems 介面

注意:這個 API 現在已經過時。

定義 IVsaItem 物件集合的介面,可依名稱或索引來定址這些物件。

命名空間:  Microsoft.Vsa
組件:  Microsoft.Vsa (在 Microsoft.Vsa.dll 中)

語法

'宣告
<GuidAttribute("0AB1EB6A-12BD-44d0-B941-0580ADFC73DE")> _
<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)> _
<ObsoleteAttribute("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 _
    Inherits IEnumerable
[GuidAttribute("0AB1EB6A-12BD-44d0-B941-0580ADFC73DE")]
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
[ObsoleteAttribute("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 : IEnumerable
[GuidAttribute(L"0AB1EB6A-12BD-44d0-B941-0580ADFC73DE")]
[InterfaceTypeAttribute(ComInterfaceType::InterfaceIsIUnknown)]
[ObsoleteAttribute(L"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 class IVsaItems : IEnumerable
[<GuidAttribute("0AB1EB6A-12BD-44d0-B941-0580ADFC73DE")>]
[<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)>]
[<ObsoleteAttribute("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 
    end
public interface IVsaItems extends IEnumerable

IVsaItems 類型會公開下列成員。

屬性

  名稱 描述
公用屬性 Count 取得指定集合中的項目數。
公用屬性 Item[Int32] 依索引值從集合中取得項目。
公用屬性 Item[String] 依名稱從集合中取得項目。

回頁首

方法

  名稱 描述
公用方法 CreateItem 依照 IVsaItem 列舉中所定義,建立其中一個 VsaItemType 類型的新執行個體。
公用方法 GetEnumerator 傳回逐一查看集合的列舉值。 (繼承自 IEnumerable)。
公用方法 Remove(Int32) 依照索引值所指定,從集合中移除項目。
公用方法 Remove(String) 依照名稱所指定,從集合中移除項目。

回頁首

請參閱

參考

Microsoft.Vsa 命名空間