共用方式為


IndexDocumentsAction.Delete Method

Definition

Overloads

Delete(String, String)

Create an IndexDocumentsAction<T> to delete.

Delete<T>(T)

Create an IndexDocumentsAction<T> to delete.

Delete(String, String)

Source:
IndexDocumentsAction.cs
Source:
IndexDocumentsAction.cs

Create an IndexDocumentsAction<T> to delete.

public static Azure.Search.Documents.Models.IndexDocumentsAction<Azure.Search.Documents.Models.SearchDocument> Delete (string keyName, string keyValue);
static member Delete : string * string -> Azure.Search.Documents.Models.IndexDocumentsAction<Azure.Search.Documents.Models.SearchDocument>
Public Shared Function Delete (keyName As String, keyValue As String) As IndexDocumentsAction(Of SearchDocument)

Parameters

keyName
String

The name of the key field of the index.

keyValue
String

The key of the document to delete.

Returns

An IndexDocumentsAction<T> to delete.

Applies to

Delete<T>(T)

Source:
IndexDocumentsAction.cs
Source:
IndexDocumentsAction.cs

Create an IndexDocumentsAction<T> to delete.

public static Azure.Search.Documents.Models.IndexDocumentsAction<T> Delete<T> (T document);
static member Delete : 'T -> Azure.Search.Documents.Models.IndexDocumentsAction<'T>
Public Shared Function Delete(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 delete.

Returns

An IndexDocumentsAction<T> to delete.

Applies to