System.Collections.Specialized.NameObjectCollectionBase Members

The members of System.Collections.Specialized.NameObjectCollectionBase are listed below.

See Also: Inherited members from System.Object

Protected Constructors

Initializes a new instance of the System.Collections.Specialized.NameObjectCollectionBase class that is empty.

Initializes a new instance of the System.Collections.Specialized.NameObjectCollectionBase class that is empty, has the default initial capacity, and uses the specified IEqualityComparer object.

Initializes a new instance of the System.Collections.Specialized.NameObjectCollectionBase class that is empty, has the specified initial capacity, and uses the default hash code provider and the default comparer.

Initializes a new instance of the System.Collections.Specialized.NameObjectCollectionBase class that is empty, has the default initial capacity, and uses the specified hash code provider and the specified comparer.

Initializes a new instance of the System.Collections.Specialized.NameObjectCollectionBase class that is empty, has the specified initial capacity, and uses the specified IEqualityComparer object.

Initializes a new instance of the System.Collections.Specialized.NameObjectCollectionBase class that is serializable and uses the specified System.Runtime.Serialization.SerializationInfo and System.Runtime.Serialization.StreamingContext.

Initializes a new instance of the System.Collections.Specialized.NameObjectCollectionBase class that is empty, has the specified initial capacity and uses the specified hash code provider and the specified comparer.

Public Properties

Protected Properties

IsReadOnlybool.

Gets or sets a value indicating whether the System.Collections.Specialized.NameObjectCollectionBase instance is read-only.

Public Methods

GetEnumerator() : IEnumerator

Returns an enumerator that iterates through the System.Collections.Specialized.NameObjectCollectionBase.

GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)

Implements the System.Runtime.Serialization.ISerializable interface and returns the data needed to serialize the System.Collections.Specialized.NameObjectCollectionBase instance.

OnDeserialization(object)

Implements the System.Runtime.Serialization.ISerializable interface and raises the deserialization event when the deserialization is complete.

Protected Methods

BaseAdd(string, object)

Adds an entry with the specified key and value into the System.Collections.Specialized.NameObjectCollectionBase instance.

BaseClear()

Removes all entries from the System.Collections.Specialized.NameObjectCollectionBase instance.

BaseGet(int) : object

Gets the value of the entry at the specified index of the System.Collections.Specialized.NameObjectCollectionBase instance.

BaseGet(string) : object

Gets the value of the first entry with the specified key from the System.Collections.Specialized.NameObjectCollectionBase instance.

BaseGetAllKeys() : string[]

Returns a string array that contains all the keys in the System.Collections.Specialized.NameObjectCollectionBase instance.

BaseGetAllValues() : object[]

Returns an object array that contains all the values in the System.Collections.Specialized.NameObjectCollectionBase instance.

BaseGetAllValues(Type) : object[]

Returns an array of the specified type that contains all the values in the System.Collections.Specialized.NameObjectCollectionBase instance.

BaseGetKey(int) : string

Gets the key of the entry at the specified index of the System.Collections.Specialized.NameObjectCollectionBase instance.

BaseHasKeys() : bool

Gets a value indicating whether the System.Collections.Specialized.NameObjectCollectionBase instance contains entries whose keys are not null.

BaseRemove(string)

Removes the entries with the specified key from the System.Collections.Specialized.NameObjectCollectionBase instance.

BaseRemoveAt(int)

Removes the entry at the specified index of the System.Collections.Specialized.NameObjectCollectionBase instance.

BaseSet(int, object)

Sets the value of the entry at the specified index of the System.Collections.Specialized.NameObjectCollectionBase instance.

BaseSet(string, object)

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

Explicitly Implemented Interface Members

ICollection.CopyTo

Copies the entire System.Collections.Specialized.NameObjectCollectionBase to a compatible one-dimensional Array, starting at the specified index of the target array.

[read-only]
ICollection.IsSynchronizedbool.

Gets a value indicating whether access to the System.Collections.Specialized.NameObjectCollectionBase object is synchronized (thread safe).

[read-only]
ICollection.SyncRootobject.

Gets an object that can be used to synchronize access to the System.Collections.Specialized.NameObjectCollectionBase object.