Table of Contents

ContainsKey Method

Definition

ContainsKey(NameValueCollection, string)

Determines whether the specified nvc contains an entry with the specified key.

public static bool ContainsKey(this NameValueCollection nvc, string key)

Parameters

nvc NameValueCollection

The NameValueCollection to extend.

key string

The key to locate in nvc.

Returns

bool

true if the specified nvc contains an entry with the key; otherwise, false.

Remarks

This method performs an OrdinalIgnoreCase search for key.