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 [C#] protected virtual bool CanRemoveInstance( object value ); [C++] protected: virtual bool CanRemoveInstance( Object* value ); [JScript] protected function CanRemoveInstance( value : Object ) : Boolean;
Parameters
- value
- 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.
Remarks
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.
Requirements
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:
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code
See Also
CollectionEditor Class | CollectionEditor Members | System.ComponentModel.Design Namespace