< Dice‎ | FunctionRegistry
Revision as of 22:15, 27 April 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|FunctionRegistry.Contains Method (String, FunctionScope, Boolean)}} Checks if the given function has already been registered. {{ns}} == Syntax == <syntaxhighlight l...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

FunctionRegistry.Contains Method (String, FunctionScope, Boolean)

From DiceRoller Documentation

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.