ServiceManager.RemoveCallback(Delegate, Delegate) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A helper method that performs a Delegate.Remove
operation, and unwraps delegates that are proxies to generic callbacks. You should use this method in your Unsubscribe implementations.
protected:
static Delegate ^ RemoveCallback(Delegate ^ existing, Delegate ^ toRemove);
protected static Delegate RemoveCallback (Delegate existing, Delegate toRemove);
static member RemoveCallback : Delegate * Delegate -> Delegate
Protected Shared Function RemoveCallback (existing As Delegate, toRemove As Delegate) As Delegate
Parameters
- existing
- Delegate
The existing delegate to remove the callback from.
- toRemove
- Delegate
The callback to remove.
Returns
Returns Delegate, which is a new value to assign to the existing delegate.
Applies to
Surađujte s nama na GitHubu
Izvor za ovaj sadržaj možete pronaći na GitHubu, gdje možete stvarati i pregledavati probleme i zahtjeve za povlačenjem. Dodatne informacije potražite u našem vodiču za suradnike.