次の方法で共有


Conflicts.GetConflictQueryIterator メソッド

定義

オーバーロード

GetConflictQueryIterator<T>(QueryDefinition, String, QueryRequestOptions)

Azure Cosmos コンテナーで を通過 ConflictProperties する反復子を取得します。

GetConflictQueryIterator<T>(String, String, QueryRequestOptions)

Azure Cosmos コンテナーで を通過 ConflictProperties する反復子を取得します。

GetConflictQueryIterator<T>(QueryDefinition, String, QueryRequestOptions)

ソース:
Conflicts.cs

Azure Cosmos コンテナーで を通過 ConflictProperties する反復子を取得します。

public abstract Microsoft.Azure.Cosmos.FeedIterator<T> GetConflictQueryIterator<T> (Microsoft.Azure.Cosmos.QueryDefinition queryDefinition, string continuationToken = default, Microsoft.Azure.Cosmos.QueryRequestOptions requestOptions = default);
abstract member GetConflictQueryIterator : Microsoft.Azure.Cosmos.QueryDefinition * string * Microsoft.Azure.Cosmos.QueryRequestOptions -> Microsoft.Azure.Cosmos.FeedIterator<'T>
Public MustOverride Function GetConflictQueryIterator(Of T) (queryDefinition As QueryDefinition, Optional continuationToken As String = Nothing, Optional requestOptions As QueryRequestOptions = Nothing) As FeedIterator(Of T)

型パラメーター

T

パラメーター

queryDefinition
QueryDefinition

Cosmos SQL クエリ定義。

continuationToken
String

(省略可能)Azure Cosmos DB サービスの継続トークン。

requestOptions
QueryRequestOptions

(省略可能)項目クエリ要求のオプション QueryRequestOptions

戻り値

競合を通過する反復子。

using (FeedIterator<ConflictProperties> feedIterator = conflicts.GetConflictQueryIterator())
{
    while (feedIterator.HasMoreResults)
    {
        FeedResponse<ConflictProperties> response = await feedIterator.ReadNextAsync();
        foreach (var conflict in response)
        {
            Console.WriteLine(conflict);
        }
    }
}

適用対象

GetConflictQueryIterator<T>(String, String, QueryRequestOptions)

ソース:
Conflicts.cs

Azure Cosmos コンテナーで を通過 ConflictProperties する反復子を取得します。

public abstract Microsoft.Azure.Cosmos.FeedIterator<T> GetConflictQueryIterator<T> (string queryText = default, string continuationToken = default, Microsoft.Azure.Cosmos.QueryRequestOptions requestOptions = default);
abstract member GetConflictQueryIterator : string * string * Microsoft.Azure.Cosmos.QueryRequestOptions -> Microsoft.Azure.Cosmos.FeedIterator<'T>
Public MustOverride Function GetConflictQueryIterator(Of T) (Optional queryText As String = Nothing, Optional continuationToken As String = Nothing, Optional requestOptions As QueryRequestOptions = Nothing) As FeedIterator(Of T)

型パラメーター

T

パラメーター

queryText
String

Cosmos SQL クエリ テキスト。

continuationToken
String

(省略可能)Azure Cosmos DB サービスの継続トークン。

requestOptions
QueryRequestOptions

(省略可能)項目クエリ要求のオプション。

戻り値

競合を通過する反復子。

using (FeedIterator<ConflictProperties> conflictIterator = conflicts.GetConflictQueryIterator())
{
    while (feedIterator.HasMoreResults)
    {
        FeedResponse<ConflictProperties> response = await feedIterator.ReadNextAsync();
        foreach (var conflict in response)
        {
            Console.WriteLine(conflict);
        }
    }
}

適用対象