Skip to main content
All docs
V25.1
  • .NET 8.0+

    XPBaseCollection.BaseRemoveAsync(Object, CancellationToken) Method

    Asynchronously removes the specified persistent object from the XPBaseCollection.

    Namespace: DevExpress.Xpo

    Assembly: DevExpress.Xpo.v25.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