i have a vb.net class that Implements IDisposable.
now i want to make that class services, so i make it inherits
servicedComponent.
now i get this error message:
sub 'Dispose' shadows an overridable method in a base class. To override the
base method, this method must be declared 'Overrides'.

now that's OK, i can declare the sub as overrides, but should i take
anything else into consideration?
like calling the base.dispose inside my function.
must I?

TIA.

Re: serviced component question by Robert

Robert
Thu Sep 29 04:07:16 CDT 2005

> i have a vb.net class that Implements IDisposable.
> now i want to make that class services, so i make it inherits
> servicedComponent.
> now i get this error message:
> sub 'Dispose' shadows an overridable method in a base class. To override the
> base method, this method must be declared 'Overrides'.
>
> now that's OK, i can declare the sub as overrides, but should i take
> anything else into consideration?
> like calling the base.dispose inside my function.
> must I?

Yes.

Rob