Deleting object

Hi,
i have to make the following thing:
if the user asks for to eliminate an object from the goview i have to eliminate only if they occur you determine conditions. How can i do this?
Thanks

<SPAN =“296262115-13122006”>GoObjects have a Deletable property you can set to preview the user from deleting them.
<SPAN =“296262115-13122006”>You can also override GoObject.CanDelete if you want to compute the property on the fly.
<SPAN =“296262115-13122006”>And a third method… you can also implement a GoView.SelectionDeleting event handler, <SPAN =“296262115-13122006”>and cancelling the deletion if so desired. That has the possible benefit of preventing the whole deletion, even if some of the selected objects are OK to be deleted.