SearchModelFactory.KnowledgeSourceFile Method

Definition

Metadata for a file uploaded to a File knowledge source.

public static Azure.Search.Documents.Indexes.Models.KnowledgeSourceFile KnowledgeSourceFile(string fileId = default, string fileName = default, long? fileSizeBytes = default, DateTimeOffset? createdAt = default, DateTimeOffset? lastUpdatedAt = default, string errorMessage = default);
static member KnowledgeSourceFile : string * string * Nullable<int64> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string -> Azure.Search.Documents.Indexes.Models.KnowledgeSourceFile
Public Shared Function KnowledgeSourceFile (Optional fileId As String = Nothing, Optional fileName As String = Nothing, Optional fileSizeBytes As Nullable(Of Long) = Nothing, Optional createdAt As Nullable(Of DateTimeOffset) = Nothing, Optional lastUpdatedAt As Nullable(Of DateTimeOffset) = Nothing, Optional errorMessage As String = Nothing) As KnowledgeSourceFile

Parameters

fileId
String

The unique identifier for the file.

fileName
String

The original file name.

fileSizeBytes
Nullable<Int64>

The file size in bytes.

createdAt
Nullable<DateTimeOffset>

The timestamp when the file was created.

lastUpdatedAt
Nullable<DateTimeOffset>

The timestamp when the file was last updated.

errorMessage
String

The error message if file processing failed, null otherwise.

Returns

A new KnowledgeSourceFile instance for mocking.

Applies to