public async Task AddTagAsync()

in WindowsSmartInk/Microsoft.MTC.SmartInk/SmartInkPackage.cs [207:221]


        public async Task AddTagAsync(Guid tagId, string tagName)
        {
            if (tagId == null || tagId == Guid.Empty)
                throw new ArgumentException($"{nameof(tagId)} cannot be null or empty");

            if (string.IsNullOrWhiteSpace(tagName))
                throw new ArgumentNullException($"{nameof(tagName)} cannot be null");

            if (!_manifest.IconMap.ContainsKey(tagId))
                _manifest.TagList.Add(tagId, tagName);
            else
                _manifest.TagList[tagId] = tagName;

            await SaveAsync();
        }