Description
The GetTokens
method is a member of the ITagSet
interface in the Sandbox namespace. This method is designed to retrieve all the tags present in the tag set as a collection of unique identifiers. Each tag is represented by a UInt32
token, which serves as a unique identifier for the tag within the set.
Usage
To use the GetTokens
method, you need to have an instance of a class that implements the ITagSet
interface. Once you have this instance, you can call the GetTokens
method to retrieve the set of tag tokens.
Example usage:
ITagSet tagSet = GetTagSetInstance();
IReadOnlySet<UInt32> tokens = tagSet.GetTokens();
foreach (var token in tokens)
{
// Process each token
}
Example
ITagSet tagSet = GetTagSetInstance();
IReadOnlySet<UInt32> tokens = tagSet.GetTokens();
foreach (var token in tokens)
{
// Process each token
}