Was this page helpful?

Get Extension Method

    Get(this NameValueCollection collection, string key)

    public static string Get(this NameValueCollection collection, string key);
    Get the first value or null for a certain key from a System.Collections.Specialized.NameValueCollection.

    Parameters

    Name Type Description
    collection NameValueCollection Collection to retrieve value from.
    key string Key to retrieve value for.

    Returns

    Type: string
    First value for given key or null, if no values are defined for the key.
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by