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.164 -- Release Build+4792d58a5dfec79a98312666bfd5a0106e818d1d
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