Share via


MockableStreamAnalyticsSubscriptionResource.CompileQuerySubscriptionAsync Method

Definition

Compile the Stream Analytics query.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.StreamAnalytics/locations/{location}/compileQuery
  • Operation Id: Subscriptions_CompileQuery
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsQueryCompilationResult>> CompileQuerySubscriptionAsync (Azure.Core.AzureLocation location, Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsCompileQuery compileQuery, System.Threading.CancellationToken cancellationToken = default);
abstract member CompileQuerySubscriptionAsync : Azure.Core.AzureLocation * Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsCompileQuery * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsQueryCompilationResult>>
override this.CompileQuerySubscriptionAsync : Azure.Core.AzureLocation * Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsCompileQuery * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsQueryCompilationResult>>
Public Overridable Function CompileQuerySubscriptionAsync (location As AzureLocation, compileQuery As StreamAnalyticsCompileQuery, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of StreamAnalyticsQueryCompilationResult))

Parameters

location
AzureLocation

The region to which the request is sent. You can find out which regions Azure Stream Analytics is supported in here: https://azure.microsoft.com/en-us/regions/.

compileQuery
StreamAnalyticsCompileQuery

The query compilation object which defines the input, output, and transformation for the query compilation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

compileQuery is null.

Applies to