< Dice | DiceMacroAttribute
DiceMacroAttribute Constructor (String)
From DiceRoller Documentation
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.