Gemstone Data Library
Show/Hide TOC

# TableOperationsTDeleteRecordAsync(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.156 -- Release Build+dcdaaebc8db0d076f561458ac184e317c7d68401
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

TaskInt32
Number of rows affected.

#### Implements

ITableOperationsDeleteRecordAsync(CancellationToken, Object)

## See Also

#### Reference

TableOperationsT Class
DeleteRecordAsync Overload
Gemstone.Data.Model Namespace