Skip to main content
.NET 6.0+

XPCollection<T>.Remove(T) Method

Removes the specified object from the XPCollection<T>.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v24.1.dll

NuGet Package: DevExpress.Xpo

Declaration

public bool Remove(
    T theObject
)

Parameters

Name Type Description
theObject T

A T object to remove from the collection.

Returns

Type Description
Boolean

true if the specified object has been successfully removed from the collection; otherwise, false.

Remarks

This method first populates the collection (see XPBaseCollection.Load), finds the theObject in the collection and then removes it.

See Also