INameObjectCollection Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
type INameObjectCollection = interface
interface ICollection
interface IEnumerable
Public Interface INameObjectCollection
Implements ICollection
- Implements
Methods
Add(String, Object) |
Adds an entry with the specified key and value into the collection. |
Get(Int32) |
Retrieves the value of the specified entry from the instance. |
Get(String) |
Retrieves the value of the first entry with the specified key from the instance. |
Remove(String) |
Removes the entries with the specified key from the instance. |
RemoveAt(Int32) |
Removes the entry at the specified index of the instance. |
Set(Int32, Object) |
Sets the value of the entry at the specified index of the instance. |
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. |