Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 239
  • Last Modified:

NameValueCollection

Hi experts,

How to check if a given key is existed in a NameValueCollection or not?

Thanks!
0
kennysflau
Asked:
kennysflau
2 Solutions
 
manchCommented:

Dim obj as Collection
Dim found as boolean = false

obj = New Collection

found = obj.Contains("KeyUWant to Check")
0
 
AlexFMCommented:
Dim c as NameValueCollection
Dim key as String
...

if ( not c(key) is nothing ) then
    ' key exists
end if
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now