NameValueCollectionExtensions.ContainsKey method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Collections.Extensions
Assembly Skybrud.Essentials.dll

ContainsKey(NameValueCollection, string)

Extension method

Returns whether collection contains an item with the specified key.

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

Parameters

collection NameValueCollection

The collection.

key String

The key of the item.

Returns

true if an item with key is found; otherwise, false.