Removes from the collection by the specified entity object.
public void Remove( ProfileEntity entity )
Public Sub Remove ( entity As ProfileEntity )
public: void Remove( ProfileEntity^ entity )
| Exception | Condition |
|---|---|
| ArgumentException | Throw when the specified entity cannot be found in the collection. |
| InvalidOperationException | Throw when there are other entities depending on it.( floating, free constraints). |