Language

SearchModelFactory.FileUploadMetadata Method

Definition

The JSON 'metadata' part of a multipart/form-data file upload: the full file name/path and custom key/value metadata. The parsing mode and extraction mode are both chosen by the service and are not supplied by the caller.

public static Azure.Search.Documents.Indexes.Models.FileUploadMetadata FileUploadMetadata(string fileName = default, System.Collections.Generic.IDictionary<string,string> metadata = default);
static member FileUploadMetadata : string * System.Collections.Generic.IDictionary<string, string> -> Azure.Search.Documents.Indexes.Models.FileUploadMetadata
Public Shared Function FileUploadMetadata (Optional fileName As String = Nothing, Optional metadata As IDictionary(Of String, String) = Nothing) As FileUploadMetadata

Parameters

fileName
String

The full relative file name/path to store the file under (prefixes are derived from it).

metadata
IDictionary<String,String>

Custom key/value metadata to store with the file.

Returns

A new FileUploadMetadata instance for mocking.

Applies to