DiscoveryModelFactory.KnowledgeBaseSearchOperationResponse 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.
Response for search operations.
public static Azure.AI.Discovery.KnowledgeBaseSearchOperationResponse KnowledgeBaseSearchOperationResponse(string id = default, Azure.AI.Discovery.OperationState status = default, Azure.ResponseError error = default, Azure.AI.Discovery.SearchResponse searchResult = default);
static member KnowledgeBaseSearchOperationResponse : string * Azure.AI.Discovery.OperationState * Azure.ResponseError * Azure.AI.Discovery.SearchResponse -> Azure.AI.Discovery.KnowledgeBaseSearchOperationResponse
Public Shared Function KnowledgeBaseSearchOperationResponse (Optional id As String = Nothing, Optional status As OperationState = Nothing, Optional error As ResponseError = Nothing, Optional searchResult As SearchResponse = Nothing) As KnowledgeBaseSearchOperationResponse
Parameters
- id
- String
The unique ID of the operation.
- status
- OperationState
The status of the operation.
- error
- ResponseError
Error object that describes the error when status is 'Failed'.
- searchResult
- SearchResponse
Result details for search operations.
Returns
A new KnowledgeBaseSearchOperationResponse instance for mocking.