ES2.GetTags
Parameters
file | The file in which to look for tags. |
settings |
Optional. A user-created ES2Settings object containing options not specified in path. |
Returns
string[] | The list of tags within this file. |
Description
Returns the names of all of the tags contained in this file.
Note: Tags may not necessarily be retrieved in the order they are contained in the file.
C#
1 2 3 4 5 6 7 |
// Save three tags. ES2.Save(123, "file.txt?tag=tag1"); ES2.Save("a", "file.txt?tag=tag2"); ES2.Save(456, "file.txt?tag=tag3"); // 'tagsInFile' will be an array containing 'tag1', 'tag2' & 'tag3'. string[] tagsInFile = ES2.GetTags("file.txt"); |
JS
1 2 3 4 5 6 7 |
// Save three tags. ES2.Save(123, "file.txt?tag=tag1"); ES2.Save("a", "file.txt?tag=tag2"); ES2.Save(456, "file.txt?tag=tag3"); // 'tagsInFile' will be an array containing 'tag1', 'tag2' & 'tag3'. var tagsInFile : String[] = ES2.GetTags("file.txt"); |