NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

CollectionEditor.CanRemoveInstance

This will be called when the user tries to remove an instance from the collection that is an original member of the collection. It will not be called when removing instances that were added in this editing session since they are not yet part of the collection.

[Visual Basic]
Overridable Protected 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

This should return true if it is ok to remove this value from the collection, or false otherwise. The default implementation always returns true.

See Also

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