INameObjectCollection INameObjectCollection INameObjectCollection Interface

Definition

Defines a collection of associated string keys and object values that can be accessed either with the key or with an index.

public interface class INameObjectCollection : System::Collections::ICollection
public interface INameObjectCollection : System.Collections.ICollection
Public Interface INameObjectCollection
Implements ICollection
Implements

Methods

Add(String, Object) Add(String, Object) Add(String, Object)

Adds an entry with the specified key and value into the collection.

Get(Int32) Get(Int32) Get(Int32)

Retrieves the value of the specified entry from the instance.

Get(String) Get(String) Get(String)

Retrieves the value of the first entry with the specified key from the instance.

Remove(String) Remove(String) Remove(String)

Removes the entries with the specified key from the instance.

RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32)

Removes the entry at the specified index of the instance.

Set(Int32, Object) Set(Int32, Object) Set(Int32, Object)

Sets the value of the entry at the specified index of the instance.

Set(String, Object) Set(String, Object) Set(String, Object)

Sets the value of the first entry with the specified key in the instance, if found; otherwise, adds an entry with the specified key and value into the NameObjectCollection instance.

Applies to