SearchModelFactory.SynchronizationState 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
| Name | Description |
|---|---|
| SynchronizationState(DateTimeOffset, Int32, Int32, Int32) |
Initializes a new instance of SynchronizationState. |
| SynchronizationState(DateTimeOffset, Int32, Int32, Int32, IEnumerable<KnowledgeSourceSynchronizationError>) |
Represents the current state of an ongoing synchronization that spans multiple indexer runs. |
SynchronizationState(DateTimeOffset, Int32, Int32, Int32)
- Source:
- SearchModelFactory.cs
Initializes a new instance of SynchronizationState.
public static Azure.Search.Documents.Indexes.Models.SynchronizationState SynchronizationState(DateTimeOffset startTime = default, int itemsUpdatesProcessed = 0, int itemsUpdatesFailed = 0, int itemsSkipped = 0);
static member SynchronizationState : DateTimeOffset * int * int * int -> Azure.Search.Documents.Indexes.Models.SynchronizationState
Public Shared Function SynchronizationState (Optional startTime As DateTimeOffset = Nothing, Optional itemsUpdatesProcessed As Integer = 0, Optional itemsUpdatesFailed As Integer = 0, Optional itemsSkipped As Integer = 0) As SynchronizationState
Parameters
- startTime
- DateTimeOffset
The start time of the current synchronization.
- itemsUpdatesProcessed
- Int32
The number of item updates successfully processed in the current synchronization.
- itemsUpdatesFailed
- Int32
The number of item updates that failed in the current synchronization.
- itemsSkipped
- Int32
The number of items skipped in the current synchronization.
Returns
A new SynchronizationState instance for mocking.
Applies to
SynchronizationState(DateTimeOffset, Int32, Int32, Int32, IEnumerable<KnowledgeSourceSynchronizationError>)
- Source:
- SearchModelFactory.cs
Represents the current state of an ongoing synchronization that spans multiple indexer runs.
public static Azure.Search.Documents.KnowledgeBases.Models.SynchronizationState SynchronizationState(DateTimeOffset startTime = default, int itemsUpdatesProcessed = 0, int itemsUpdatesFailed = 0, int itemsSkipped = 0, System.Collections.Generic.IEnumerable<Azure.Search.Documents.KnowledgeBases.Models.KnowledgeSourceSynchronizationError> errors = default);
static member SynchronizationState : DateTimeOffset * int * int * int * seq<Azure.Search.Documents.KnowledgeBases.Models.KnowledgeSourceSynchronizationError> -> Azure.Search.Documents.KnowledgeBases.Models.SynchronizationState
Public Shared Function SynchronizationState (Optional startTime As DateTimeOffset = Nothing, Optional itemsUpdatesProcessed As Integer = 0, Optional itemsUpdatesFailed As Integer = 0, Optional itemsSkipped As Integer = 0, Optional errors As IEnumerable(Of KnowledgeSourceSynchronizationError) = Nothing) As SynchronizationState
Parameters
- startTime
- DateTimeOffset
The start time of the current synchronization.
- itemsUpdatesProcessed
- Int32
The number of item updates successfully processed in the current synchronization.
- itemsUpdatesFailed
- Int32
The number of item updates that failed in the current synchronization.
- itemsSkipped
- Int32
The number of items skipped in the current synchronization.
Collection of document-level indexing errors encountered during the current synchronization run. Returned only when errors are present.
Returns
A new SynchronizationState instance for mocking.