Gemstone Data Library
Show/Hide TOC

# TableOperations T DeleteRecordAsync(CancellationToken, Object) Method

Deletes the record referenced by the specified primaryKeys.

## Definition

Namespace: Gemstone.Data.Model
Assembly: Gemstone.Data (in Gemstone.Data.dll) Version: 1.0.138 -- Release Build+f7ceb3e02ea3c92b27e86b99ae16cee337a20b9e
C#
View Source Request Example

    public Task<int> DeleteRecordAsync(
    	CancellationToken cancellationToken,
    	params Object[] primaryKeys
    )

VB
View Source Request Example

    Public Function DeleteRecordAsync (
    	cancellationToken As CancellationToken,
    	ParamArray primaryKeys As Object()
    ) As Task(Of Integer)

C++
View Source Request Example

    public:
    virtual Task<int>^ DeleteRecordAsync(
    	CancellationToken cancellationToken,
    	... array<Object^>^ primaryKeys
    ) sealed

JavaScript
View Source Request Example

    function DeleteRecordAsync(cancellationToken, ... primaryKeys);

#### Parameters

cancellationToken CancellationToken
  Propagates notification that operations should be canceled.
primaryKeys Object
  Primary keys values of the record to load.

#### Return Value

Task Int32
Number of rows affected.

#### Implements

ITableOperationsDeleteRecordAsync(CancellationToken, Object)

## See Also

#### Reference

TableOperationsT Class
DeleteRecordAsync Overload
Gemstone.Data.Model Namespace