ICollectionContract<C>.Remove(C) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes the first occurrence of a specific IContract from the ICollectionContract<C>.
public:
bool Remove(C item);
public bool Remove (C item);
abstract member Remove : 'C -> bool
Public Function Remove (item As C) As Boolean
Parameters
- item
- C
The IContract to remove from the ICollectionContract<C>.
Returns
true
if item
is successfully removed; otherwise, false
. This method also returns false
if item
was not found in the ICollectionContract<C>.
Exceptions
The ICollectionContract<C> is read-only.
Remarks
To determine whether an ICollectionContract<C> is read-only, call the GetIsReadOnly method.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om