SearchModelFactory.UploadKnowledgeSourceFileMultipartContent 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.
Multipart request for uploading a file to a File knowledge source.
public static Azure.Search.Documents.Indexes.Models.UploadKnowledgeSourceFileMultipartContent UploadKnowledgeSourceFileMultipartContent(Azure.Search.Documents.Indexes.Models.FileUploadMetadata metadata = default, System.ClientModel.FileBinaryContent content = default);
static member UploadKnowledgeSourceFileMultipartContent : Azure.Search.Documents.Indexes.Models.FileUploadMetadata * System.ClientModel.FileBinaryContent -> Azure.Search.Documents.Indexes.Models.UploadKnowledgeSourceFileMultipartContent
Public Shared Function UploadKnowledgeSourceFileMultipartContent (Optional metadata As FileUploadMetadata = Nothing, Optional content As FileBinaryContent = Nothing) As UploadKnowledgeSourceFileMultipartContent
Parameters
- metadata
- FileUploadMetadata
The JSON metadata describing the file.
- content
- FileBinaryContent
The raw file content.
Returns
A new UploadKnowledgeSourceFileMultipartContent instance for mocking.