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

StreamAnalyticsExtensions.CompileQuerySubscriptionAsync 方法

定义

编译流分析查询。

  • Request Path/subscriptions/{subscriptionId}/providers/Microsoft.StreamAnalytics/locations/{location}/compileQuery
  • 操作IdSubscriptions_CompileQuery
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsQueryCompilationResult>> CompileQuerySubscriptionAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsCompileQuery compileQuery, System.Threading.CancellationToken cancellationToken = default);
static member CompileQuerySubscriptionAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsCompileQuery * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsQueryCompilationResult>>
<Extension()>
Public Function CompileQuerySubscriptionAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, compileQuery As StreamAnalyticsCompileQuery, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of StreamAnalyticsQueryCompilationResult))

参数

subscriptionResource
SubscriptionResource

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

location
AzureLocation

请求发送到的区域。 可在此处了解哪些区域支持 Azure 流分析: https://azure.microsoft.com/en-us/regions/

compileQuery
StreamAnalyticsCompileQuery

定义查询编译的输入、输出和转换的查询编译对象。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

compileQuery 为 null。

适用于