< Dice | DiceMacroAttribute
Difference between revisions of "Dice/DiceMacroAttribute/DiceMacroAttribute"
From DiceRoller Documentation
(Created page with "{{APIdoc|DiceMacroAttribute Constructor (String)}} Constructs a new instance of DiceMacroAttribute. {{ns}} == Syntax == <syntaxhighlight lang="C#"> public DiceMacroAttribute...") |
(No difference)
|
Latest revision as of 22:32, 14 August 2017
Constructs a new instance of DiceMacroAttribute.
- Namespace: Dice
- Assembly: DiceRoller (in DiceRoller.dll)
Syntax
public DiceMacroAttribute(
string name
)
Parameters
- name
- Type: System.String
- The name of the macro, case insensitive. The Name property is set to this value.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | name is null.
|
Remarks
Macro names are case insensitive and must be unique within a given MacroRegistry. Duplicate name errors are not caught as part of this constructor; rather, they are caught when registering the function.