Export (0) Print
Expand All

CollectionEditor.CanRemoveInstance Method

Indicates whether original members of the collection can be removed.

[Visual Basic]
Protected Overridable Function CanRemoveInstance( _
   ByVal value As Object _
) As Boolean
protected virtual bool CanRemoveInstance(
 object value
protected: virtual bool CanRemoveInstance(
 Object* value
protected function CanRemoveInstance(
   value : Object
) : Boolean;


The value to remove.

Return Value

true if it is permissible to remove this value from the collection; otherwise, false. The default implementation always returns true.


When implemented in a derived class, this method indicates whether the specified value can be removed from the collection. By default, this method always returns true.

This method is called when the user tries to remove an item that is an original member of the collection. This method is not called when removing items that were added in the current editing session because they are not yet part of the collection.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

CollectionEditor Class | CollectionEditor Members | System.ComponentModel.Design Namespace

© 2015 Microsoft