你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CognitiveServicesExtensions.GetModels 方法

定义

列出模型。

  • 请求路径/订阅/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/models
  • 操作IdModels_List
public static Azure.Pageable<Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesModel> GetModels (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default);
static member GetModels : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesModel>
<Extension()>
Public Function GetModels (subscriptionResource As SubscriptionResource, location As AzureLocation, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of CognitiveServicesModel)

参数

subscriptionResource
SubscriptionResource

方法 SubscriptionResource 将对其执行的实例。

location
AzureLocation

资源位置。

cancellationToken
CancellationToken

要使用的取消标记。

返回

可能需要多个服务请求来循环访问的 的 CognitiveServicesModel 集合。

适用于