Bagikan melalui


IndexDocumentsAction.Upload<T>(T) Method

Definition

Create an IndexDocumentsAction<T> to upload.

public static Azure.Search.Documents.Models.IndexDocumentsAction<T> Upload<T> (T document);
static member Upload : 'T -> Azure.Search.Documents.Models.IndexDocumentsAction<'T>
Public Shared Function Upload(Of T) (document As T) As IndexDocumentsAction(Of T)

Type Parameters

T

The .NET type that maps to the index schema. Instances of this type can be retrieved as documents from the index.

Parameters

document
T

The document to upload.

Returns

An IndexDocumentsAction<T> to upload.

Applies to