The Has
method is a member of the ITagSet
interface in the Sandbox namespace. It checks whether a specific tag is present in the tag set.
The Has
method is a member of the ITagSet
interface in the Sandbox namespace. It checks whether a specific tag is present in the tag set.
To use the Has
method, you need to have an instance of a class that implements the ITagSet
interface. Call the method with the tag you want to check as a string parameter. The method returns a boolean value indicating whether the tag is present in the set.
// Assume 'tagSet' is an instance of a class implementing ITagSet bool hasTag = tagSet.Has("exampleTag"); if (hasTag) { // The tag "exampleTag" is present in the tag set } else { // The tag "exampleTag" is not present in the tag set }