Main Content

RemoveAll

Convenience function for static .NET System.Delegate RemoveAll method

    Description

    result = RemoveAll(combinedDelegate,removedDelegate) removes all instances of removedDelegate from combinedDelegate.

    Input Arguments

    collapse all

    Delegate to modify, specified as a .NET System.Delegate object. All instances of removedDelegate are deleted.

    Delegate to remove, specified as a .NET System.Delegate object. All instances of the delegate are removed from combinedDelegate.

    Output Arguments

    collapse all

    Updated delegate, returned as a .NET System.Delegate object.

    Alternative Functionality

    Use the static RemoveAll method of the System.Delegate class.

    Introduced in R2011a