INameObjectCollection 介面

定義

定義一組相關的字串鍵與物件值,可透過鍵或索引存取。

public interface class INameObjectCollection : System::Collections::ICollection
public interface INameObjectCollection : System.Collections.ICollection
type INameObjectCollection = interface
    interface ICollection
    interface IEnumerable
Public Interface INameObjectCollection
Implements ICollection
實作

方法

名稱 Description
Add(String, Object)

將指定鍵值與值的條目加入集合中。

Get(Int32)

從實例中取得指定條目的值。

Get(String)

從實例中取得第一個指定金鑰的條目值。

Remove(String)

移除使用指定金鑰的條目。

RemoveAt(Int32)

移除實例指定索引的項目。

Set(Int32, Object)

設定該條目的值在實例指定的索引位置。

Set(String, Object)

若找到,則設定該實例中第一個指定鍵的條目值;否則,會在 NameObjectCollection 實例中加入指定鍵與值的條目。

適用於