Condividi tramite


CosmosConflicts.GetConflictsStreamAsync Method

Definition

Overloads

GetConflictsStreamAsync(QueryDefinition, String, QueryRequestOptions, CancellationToken)

Gets an iterator to go through all the conflicts for the container as the original ResponseMessage

GetConflictsStreamAsync(String, String, QueryRequestOptions, CancellationToken)

Gets an iterator to go through all the conflicts for the container as the original ResponseMessage

GetConflictsStreamAsync(QueryDefinition, String, QueryRequestOptions, CancellationToken)

Gets an iterator to go through all the conflicts for the container as the original ResponseMessage

public abstract System.Collections.Generic.IAsyncEnumerable<Azure.Response> GetConflictsStreamAsync (Azure.Cosmos.QueryDefinition queryDefinition, string continuationToken = default, Azure.Cosmos.QueryRequestOptions requestOptions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetConflictsStreamAsync : Azure.Cosmos.QueryDefinition * string * Azure.Cosmos.QueryRequestOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<Azure.Response>
Public MustOverride Function GetConflictsStreamAsync (queryDefinition As QueryDefinition, Optional continuationToken As String = Nothing, Optional requestOptions As QueryRequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of Response)

Parameters

queryDefinition
QueryDefinition

The cosmos SQL query definition.

continuationToken
String

(Optional) The continuation token in the Azure Cosmos DB service.

requestOptions
QueryRequestOptions

(Optional) The options for the item query request QueryRequestOptions

cancellationToken
CancellationToken

(Optional) CancellationToken representing request cancellation.

Returns

An iterator to go through the conflicts.

Examples

await foreach(Response response in conflicts.GetConflictsStreamAsync())
{
}

Applies to

GetConflictsStreamAsync(String, String, QueryRequestOptions, CancellationToken)

Gets an iterator to go through all the conflicts for the container as the original ResponseMessage

public abstract System.Collections.Generic.IAsyncEnumerable<Azure.Response> GetConflictsStreamAsync (string queryText = default, string continuationToken = default, Azure.Cosmos.QueryRequestOptions requestOptions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetConflictsStreamAsync : string * string * Azure.Cosmos.QueryRequestOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<Azure.Response>
Public MustOverride Function GetConflictsStreamAsync (Optional queryText As String = Nothing, Optional continuationToken As String = Nothing, Optional requestOptions As QueryRequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of Response)

Parameters

queryText
String

The cosmos SQL query text.

continuationToken
String

(Optional) The continuation token in the Azure Cosmos DB service.

requestOptions
QueryRequestOptions

(Optional) The options for the item query request QueryRequestOptions

cancellationToken
CancellationToken

(Optional) CancellationToken representing request cancellation.

Returns

An iterator to go through the conflicts.

Examples

await foreach (Response response in conflicts.GetConflictsStreamAsync())
{
}

Applies to