< Dice | FunctionRegistry
Difference between revisions of "Dice/FunctionRegistry/Contains"
From DiceRoller Documentation
(Created page with "{{APIdoc|FunctionRegistry.Contains Method (String, FunctionScope, Boolean)}} Checks if the given function has already been registered. {{ns}} == Syntax == <syntaxhighlight l...") |
(No difference)
|
Latest revision as of 22:15, 27 April 2017
Checks if the given function has already been registered.
- Namespace: Dice
- Assembly: DiceRoller (in DiceRoller.dll)
Syntax
internal bool Contains(
string name,
FunctionScope scope,
bool includeReserved = true
)
Parameters
- name
- Type: System.String
- Name of the function to check.
- scope
- Type: Dice.FunctionScope
- Scope of the function to check.
- includeReserved
- Type: System.Boolean
- If
true
, checks against the list of reserved names.
Return Value
Type: System.Boolean
Returns true
if the given function has been registered, and false
if it has not.