NameValueCollection Class

Definition

Represents a collection of name/value pairs.

[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("456DE413-6E74-49BF-8334-DAFB7D81D473")]
public class NameValueCollection : Microsoft.Hpc.Scheduler.INameValueCollection, System.Collections.Generic.ICollection<Microsoft.Hpc.Scheduler.NameValue>, System.Collections.Generic.IEnumerable<Microsoft.Hpc.Scheduler.NameValue>, System.Collections.ICollection
type NameValueCollection = class
    interface INameValueCollection
    interface ISchedulerCollection
    interface ICollection
    interface IEnumerable
    interface ICollection<NameValue>
    interface seq<NameValue>
Public Class NameValueCollection
Implements ICollection, ICollection(Of NameValue), IEnumerable(Of NameValue), INameValueCollection
Inheritance
NameValueCollection
Attributes
Implements

Constructors

NameValueCollection()

Initializes a new instance of this class.

NameValueCollection(Dictionary<String,String>)

Initializes a new instance of this class using the specified collection of name/value pairs.

Properties

Count

Retrieves the number of items in the collection.

IsReadOnly

Determines whether the collection is read-only.

IsSynchronized

Determines whether access to the collection is synchronized.

Item[Int32]

Retrieves the specified item from the collection.

SyncRoot

Retrieves an object that can be used to synchronize access to the collection.

Methods

Add(NameValue)

Adds a name/value pair to the collection.

AddNameValue(String, String)

Adds the specified name and value to the collection.

Clear()

Removes all name/value pairs from the collection.

Contains(NameValue)

Determines whether the collection contains the name/value pair.

CopyTo(Array, Int32)

Copies items from the collection to an array at the specified index.

CopyTo(NameValue[], Int32)

Copies items from the collection to a NameValue array at the specified index.

Remove(NameValue)

Removes the first occurrence of the specified item from the collection.

Explicit Interface Implementations

IEnumerable.GetEnumerator()
IEnumerable<NameValue>.GetEnumerator()
INameValueCollection.GetEnumerator()
ISchedulerCollection.Add(Object)
ISchedulerCollection.Contains(Object)
ISchedulerCollection.GetEnumerator()
ISchedulerCollection.Remove(Object)

Applies to