VOOZH about

URL: https://www.geeksforgeeks.org/websites-apps/asp-exists-method/

⇱ ASP Exists Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

ASP Exists Method

Last Updated : 22 Mar, 2021

The ASP Exists Method is used to return a Boolean value that returns true if the specified key exists, otherwise it returns false.

Syntax:

DictionaryObject.Exists(key)

Parameters: This method has a single parameter as mentioned above and discussed below:

  • Key: It specifies the name of the key value to be searched in the dictionary.

Example :The below code demonstrates the ASP Dictionary.Exists Method.

Output:

The 'g' key exists in the dictionary
The 'm' key does not exist in the dictionary 
Comment
Article Tags: