BuildIt.CognitiveServices.ContentModeratorListManagementExtensions.ImageAddImageAsync C# (CSharp) Method

ImageAddImageAsync() public static method

Add an Image to your image list. The image list can be used to do fuzzy matching against other images when using Image/Match API. Note: Remember to call <a href="https://wabashcognitiveservices.portal.azure-api.net/docs/services/57cf755e3f9b070c105bd2c2/operations/57cf755e3f9b070868a1f677">Refresh Search Index</a> for this list before you want to use it on the Image/Match API
public static ImageAddImageAsync ( this operations, string listId, double tag = default(double?), string label = default(string), string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), System cancellationToken = default(System.Threading.CancellationToken) ) : System.Threading.Tasks.Task
operations this /// The operations group for this extension method. ///
listId string ///
tag double /// <ul> /// <li>101: Nudity</li> /// <li>102: Sexual Content</li> /// <li>201: Alcohol</li> /// <li>202: Tobacco</li> /// <li>203: Drugs</li> /// <li>301: Child Exploitation</li> /// <li>401: Violence</li> /// <li>402: Weapons</li> /// <li>403: Gore</li> /// <li>501: Profanity</li> /// <li>502: Vulgarity</li> /// </ul> ///
label string /// Any additional information about the reference image. ///
subscriptionKey string /// subscription key in url ///
ocpApimSubscriptionKey string /// subscription key in header ///
cancellationToken System /// The cancellation token. ///
return System.Threading.Tasks.Task
            public static async System.Threading.Tasks.Task ImageAddImageAsync(this IContentModeratorListManagement operations, string listId, double? tag = default(double?), string label = default(string), string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
            {
                await operations.ImageAddImageWithHttpMessagesAsync(listId, tag, label, subscriptionKey, ocpApimSubscriptionKey, null, cancellationToken).ConfigureAwait(false);
            }