Search Results for

    Show / Hide Table of Contents

    Class NameValueCollection

    Implementation of a NameValueCollection for Silverlight and Windows Phone.

    Inheritance
    System.Object
    NameValueCollection
    Namespace: FM.LiveSwitch
    Assembly: FM.LiveSwitch.dll
    Syntax
    public class NameValueCollection : List<KeyValuePair<string, string>>

    Constructors

    NameValueCollection()

    Initializes a new instance of the NameValueCollection class that is empty, has the default initial capacity and uses the default case-insensitive hash code provider and the default case-insensitive comparer.

    Declaration
    public NameValueCollection()

    NameValueCollection(NameValueCollection)

    Copies the entries from the specified NameValueCollection to a new NameValueCollection with the same initial capacity as the number of entries copied and using the same hash code provider and the same comparer as the source collection.

    Declaration
    public NameValueCollection(NameValueCollection collection)
    Parameters
    Type Name Description
    NameValueCollection collection

    The NameValueCollection to copy to the new NameValueCollection instance.

    NameValueCollection(Int32)

    Initializes a new instance of the NameValueCollection class that is empty, has the specified initial capacity and uses the default case-insensitive hash code provider and the default case-insensitive comparer.

    Declaration
    public NameValueCollection(int capacity)
    Parameters
    Type Name Description
    System.Int32 capacity

    The initial number of entries that the NameValueCollection can contain.

    Properties

    AllKeys

    Gets all the keys in the NameValueCollection.

    Declaration
    public string[] AllKeys { get; }
    Property Value
    Type Description
    System.String[]

    Item[Int32]

    Gets the entry at the specified index of the NameValueCollection.

    Declaration
    public string this[int index] { get; }
    Parameters
    Type Name Description
    System.Int32 index
    Property Value
    Type Description
    System.String

    Item[String]

    Gets or sets the entry with the specified key in the NameValueCollection.

    Declaration
    public string this[string name] { get; set; }
    Parameters
    Type Name Description
    System.String name
    Property Value
    Type Description
    System.String
    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0