Freigeben über


SearchModelFactory.KnowledgeBaseActivityRecord Method

Definition

Initializes a new instance of KnowledgeBaseActivityRecord.

public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseActivityRecord KnowledgeBaseActivityRecord(int id = 0, string type = default, int? elapsedMs = default, Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail error = default);
static member KnowledgeBaseActivityRecord : int * string * Nullable<int> * Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail -> Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseActivityRecord
Public Shared Function KnowledgeBaseActivityRecord (Optional id As Integer = 0, Optional type As String = Nothing, Optional elapsedMs As Nullable(Of Integer) = Nothing, Optional error As KnowledgeBaseErrorDetail = Nothing) As KnowledgeBaseActivityRecord

Parameters

id
Int32

The ID of the activity record.

type
String

The type of the activity record.

elapsedMs
Nullable<Int32>

The elapsed time in milliseconds for the retrieval activity.

error
KnowledgeBaseErrorDetail

The error detail explaining why the operation failed. This property is only included when the activity does not succeed.

Returns

A new KnowledgeBaseActivityRecord instance for mocking.

Applies to