Conflicts.GetConflictQueryIterator Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetConflictQueryIterator<T>(QueryDefinition, String, QueryRequestOptions) |
Obtains an iterator to go through the ConflictProperties on an Azure Cosmos container. |
GetConflictQueryIterator<T>(String, String, QueryRequestOptions) |
Obtains an iterator to go through the ConflictProperties on an Azure Cosmos container. |
GetConflictQueryIterator<T>(QueryDefinition, String, QueryRequestOptions)
- Source:
- Conflicts.cs
Obtains an iterator to go through the ConflictProperties on an Azure Cosmos container.
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)
Type Parameters
- T
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
Returns
An iterator to go through the conflicts.
Examples
using (FeedIterator<ConflictProperties> feedIterator = conflicts.GetConflictQueryIterator())
{
while (feedIterator.HasMoreResults)
{
FeedResponse<ConflictProperties> response = await feedIterator.ReadNextAsync();
foreach (var conflict in response)
{
Console.WriteLine(conflict);
}
}
}
Applies to
GetConflictQueryIterator<T>(String, String, QueryRequestOptions)
- Source:
- Conflicts.cs
Obtains an iterator to go through the ConflictProperties on an Azure Cosmos container.
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)
Type Parameters
- T
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.
Returns
An iterator to go through the conflicts.
Examples
using (FeedIterator<ConflictProperties> conflictIterator = conflicts.GetConflictQueryIterator())
{
while (feedIterator.HasMoreResults)
{
FeedResponse<ConflictProperties> response = await feedIterator.ReadNextAsync();
foreach (var conflict in response)
{
Console.WriteLine(conflict);
}
}
}
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應