< Dice | MacroRegistry
Difference between revisions of "Dice/MacroRegistry/RemoveGlobal"
From DiceRoller Documentation
(Created page with "{{APIdoc|MacroRegistry.RemoveGlobal Method (MacroCallback)}} Removes all instances of the callback from the global macro registry. {{ns}} == Syntax == <syntaxhighlight lang=...") |
(No difference)
|
Latest revision as of 19:32, 15 September 2017
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.