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
System.String

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

requestOptions
QueryRequestOptions

(Optional) The options for the item query request QueryRequestOptions

cancellationToken
System.Threading.CancellationToken

(Optional) System.Threading.CancellationToken representing request cancellation.

Returns

System.Collections.Generic.IAsyncEnumerable<Response>

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
System.String

The cosmos SQL query text.

continuationToken
System.String

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

requestOptions
QueryRequestOptions

(Optional) The options for the item query request QueryRequestOptions

cancellationToken
System.Threading.CancellationToken

(Optional) System.Threading.CancellationToken representing request cancellation.

Returns

System.Collections.Generic.IAsyncEnumerable<Response>

An iterator to go through the conflicts.

Examples

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

Applies to