• Webinars
  • Docs
  • Download
  • Blogs
  • Contact Us
Try Free
Show / Hide Table of Contents

Method Contains

Contains(String)

Search for the key in named tags dictionary and Return true if it is found and false in other case.

Declaration
public bool Contains(string key)
Parameters
Type Name Description
System.String key

search this key in NamedtagsDictionary

Returns
Type Description
System.Boolean

true if key found and false in other case

Examples

Example verifies if the tags dictionary contains a tag

NamedTagsDictionary tags = new NamedTagsDictionary();
if(!tags.Contains("Tag1"))
{
    tags.Add("Tag1", int.MaxValue);
}
Back to top Copyright © 2017 Alachisoft