TableOperationsTDeleteRecordAsync(RecordRestriction, CancellationToken, NullableBoolean) Method
Deletes the records referenced by the specified restriction.
Namespace: Gemstone.Data.ModelAssembly: Gemstone.Data (in Gemstone.Data.dll) Version: 1.0.137 -- Release Build+bf396311d630d9a0959afedb17412b40a2acb327
public Task<int> DeleteRecordAsync(
RecordRestriction? restriction,
CancellationToken cancellationToken,
bool? applyRootQueryRestriction = null
)
Public Function DeleteRecordAsync (
restriction As RecordRestriction,
cancellationToken As CancellationToken,
Optional applyRootQueryRestriction As Boolean? = Nothing
) As Task(Of Integer)
public:
virtual Task<int>^ DeleteRecordAsync(
RecordRestriction^ restriction,
CancellationToken cancellationToken,
Nullable<bool> applyRootQueryRestriction = nullptr
) sealed
function DeleteRecordAsync(restriction, cancellationToken, applyRootQueryRestriction);
- restriction RecordRestriction
- Record restriction to apply
- cancellationToken CancellationToken
- Propagates notification that operations should be canceled.
- applyRootQueryRestriction NullableBoolean (Optional)
-
Flag that determines if any existing RootQueryRestriction should be applied. Defaults to
ApplyRootQueryRestrictionToDeletes setting.
TaskInt32Number of rows affected.
ITableOperationsDeleteRecordAsync(RecordRestriction, CancellationToken, NullableBoolean) ArgumentNullException | restriction cannot be null. |