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;
- The value to remove.
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:
- 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