CollectionEditor.CollectionForm.CanRemoveInstance(Object) 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.
Indicates whether you can remove the original members of the collection.
protected:
bool CanRemoveInstance(System::Object ^ value);
protected bool CanRemoveInstance (object value);
member this.CanRemoveInstance : obj -> bool
Protected Function CanRemoveInstance (value As Object) As Boolean
Parameters
- value
- Object
The value to remove.
Returns
true
if it is permissible to remove this value from the collection; otherwise, false
. By default, this method returns the value from CanRemoveInstance(Object) of the CollectionEditor for this form.
Remarks
When implemented in a derived class, this method indicates whether the specified value can be removed from the collection. By default, this returns the value from CanRemoveInstance of the CollectionEditor for this form.
This method is called when the user tries to remove from the collection an item that is an original member of the collection. This method is not called when removing items that were added in this editing session, because they are not yet part of the collection.
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