コード例 #1
0
 /// <summary>
 /// Removes one or more tags from one or more objects.
 /// </summary>
 /// <param name="tagIds">A list of the IDs of the tag(s) which should be removed from objects.</param>
 /// <param name="searchOptions">The search options.</param>
 public async Task RemoveTagAsync(IEnumerable <int> tagIds, ApiSearchOptions searchOptions = null) =>
 await _ontraObjects.RemoveTagAsync((ApiObjectType)_objectTypeId, tagIds, searchOptions);
コード例 #2
0
 /// <summary>
 /// Removes a tag from an object.
 /// </summary>
 /// <param name="id">The id of the object to affect.</param>
 /// <param name="tagId">The ID of the tag which should be removed from the object.</param>
 public async Task RemoveTagAsync(int id, int tagId) =>
 await _ontraObjects.RemoveTagAsync((ApiObjectType)_objectTypeId, new ApiSearchOptions(id), new[] { tagId }).ConfigureAwait(false);