Skip to main content
.NET Framework 4.5.2+

XPBaseCollection.BaseRemoveAsync(Object, CancellationToken) Method

Asynchronously removes the specified persistent object from the XPBaseCollection.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v24.1.dll

NuGet Package: DevExpress.Xpo

Declaration

public Task<bool> BaseRemoveAsync(
    object theObject,
    CancellationToken cancellationToken = default(CancellationToken)
)

Parameters

Name Type Description
theObject Object

An object to remove from the collection.

Optional Parameters

Name Type Default Description
cancellationToken CancellationToken null

A CancellationToken object that delivers a cancellation notice to the running operation.

Returns

Type Description
Task<Boolean>

A Task<TResult> that returns true if the object has been successfully removed from the collection; otherwise, false.

See Also