Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Common Namespace / UrlEncodedDictionary Class / TryGetValue Method / TryGetValue(String) Method
The key to retrieve the value for.
In This Topic
    TryGetValue(String) Method
    In This Topic
    Returns a value from the dictionary for the given key.
    Syntax
    public string TryGetValue( 
       string key
    )

    Parameters

    key
    The key to retrieve the value for.

    Return Value

    The value stored for the key, or string.Empty if the key is not present in the dictionary.
    Remarks
    This is useful over the base TryGetValue if you do not care whether the item is found, you can just obtain a return value or string.empty as default rather than using a local out variable.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also