Skip to main content
.NET 8.0+

XPCollection<T>.Remove(T) Method

Removes the specified object from the XPCollection<T>.

Namespace: DevExpress.Xpo

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