< Dice‎ | MacroRegistry
Revision as of 19:32, 15 September 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|MacroRegistry.RemoveGlobal Method (MacroCallback)}} Removes all instances of the callback from the global macro registry. {{ns}} == Syntax == <syntaxhighlight lang=...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

MacroRegistry.RemoveGlobal Method (MacroCallback)

From DiceRoller Documentation

Removes all instances of the callback from the global macro registry.

  • Namespace: Dice
  • Assembly: DiceRoller (in DiceRoller.dll)

Syntax

public void RemoveGlobal(
    MacroCallback callback
)

Parameters

name
Type: Dice.MacroCallback
Callback to remove

Exceptions

Exception Condition
ArgumentNullException callback is null.

Remarks

All instances of the callback are removed; it is not possible to remove just a single callback instance should the same callback be registered more than once. No error is thrown if the callback is not registered.