/// <summary> /// This operation recognizes content within an image by applying a /// domain-specific model. The list of domain-specific models that are /// supported by the Computer Vision API can be retrieved using the /models GET /// request. Currently, the API provides following domain-specific models: /// celebrities, landmarks. /// Two input methods are supported -- (1) Uploading an image or (2) specifying /// an image URL. /// A successful response will be returned in JSON. /// If the request failed, the response will contain an error code and a /// message to help understand what went wrong. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='model'> /// The domain-specific content to recognize. /// </param> /// <param name='url'> /// Publicly reachable URL of an image. /// </param> /// <param name='language'> /// The desired language for output generation. If this parameter is not /// specified, the default value is &quot;en&quot;.Supported /// languages:en - English, Default. es - Spanish, ja - Japanese, pt - /// Portuguese, zh - Simplified Chinese. Possible values include: 'en', 'es', /// 'ja', 'pt', 'zh' /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <DomainModelResults> AnalyzeImageByDomainAsync(this IComputerVisionClient operations, string model, string url, string language = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.AnalyzeImageByDomainWithHttpMessagesAsync(model, url, language, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }