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.159 -- Release Build+9666939f99852a601f77d33e6f63320df255766c
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