CosmosConflicts.GetConflictsAsync Method

Definition

Overloads

GetConflictsAsync<T>(QueryDefinition, String, QueryRequestOptions, CancellationToken)

Obtains an iterator to go through the ConflictProperties on an Azure Cosmos container.

GetConflictsAsync<T>(String, String, QueryRequestOptions, CancellationToken)

Obtains an iterator to go through the ConflictProperties on an Azure Cosmos container.

GetConflictsAsync<T>(QueryDefinition, String, QueryRequestOptions, CancellationToken)

Obtains an iterator to go through the ConflictProperties on an Azure Cosmos container.

public abstract Azure.AsyncPageable<T> GetConflictsAsync<T> (Azure.Cosmos.QueryDefinition queryDefinition, string continuationToken = default, Azure.Cosmos.QueryRequestOptions requestOptions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetConflictsAsync : Azure.Cosmos.QueryDefinition * string * Azure.Cosmos.QueryRequestOptions * System.Threading.CancellationToken -> Azure.AsyncPageable<'T>
Public MustOverride Function GetConflictsAsync(Of T) (queryDefinition As QueryDefinition, Optional continuationToken As String = Nothing, Optional requestOptions As QueryRequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of T)

Type Parameters

T

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

AsyncPageable<T>

An iterator to go through the conflicts.

Examples

await foreach(ConflictProperties item in conflicts.GetConflictsAsync())
{
}

Applies to

GetConflictsAsync<T>(String, String, QueryRequestOptions, CancellationToken)

Obtains an iterator to go through the ConflictProperties on an Azure Cosmos container.

public abstract Azure.AsyncPageable<T> GetConflictsAsync<T> (string queryText = default, string continuationToken = default, Azure.Cosmos.QueryRequestOptions requestOptions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetConflictsAsync : string * string * Azure.Cosmos.QueryRequestOptions * System.Threading.CancellationToken -> Azure.AsyncPageable<'T>
Public MustOverride Function GetConflictsAsync(Of T) (Optional queryText As String = Nothing, Optional continuationToken As String = Nothing, Optional requestOptions As QueryRequestOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of T)

Type Parameters

T

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

AsyncPageable<T>

An iterator to go through the conflicts.

Examples

await foreach(ConflictProperties item in conflicts.GetConflictsAsync())
{
}

Applies to