< Dice‎ | DiceMacroAttribute
Revision as of 22:32, 14 August 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|DiceMacroAttribute Constructor (String)}} Constructs a new instance of DiceMacroAttribute. {{ns}} == Syntax == <syntaxhighlight lang="C#"> public DiceMacroAttribute...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.