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.165 -- Release Build+f2de1f3c03632b89a9c6593906149f1c7d061b33
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