SecureTableOperationsTDeleteRecordAsync(ClaimsPrincipal, 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.164 -- Release Build+4792d58a5dfec79a98312666bfd5a0106e818d1d
public Task<int> DeleteRecordAsync(
ClaimsPrincipal principal,
RecordRestriction? restriction,
CancellationToken cancellationToken,
bool? applyRootQueryRestriction = null
)
Public Function DeleteRecordAsync (
principal As ClaimsPrincipal,
restriction As RecordRestriction,
cancellationToken As CancellationToken,
Optional applyRootQueryRestriction As Boolean? = Nothing
) As Task(Of Integer)
public:
Task<int>^ DeleteRecordAsync(
ClaimsPrincipal^ principal,
RecordRestriction^ restriction,
CancellationToken cancellationToken,
Nullable<bool> applyRootQueryRestriction = nullptr
)
function DeleteRecordAsync(principal, restriction, cancellationToken, applyRootQueryRestriction);
- principal ClaimsPrincipal
- Claims principal which is making the request.
- 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.
| ArgumentNullException | restriction cannot be null. |