Loading...
Area: Episerver Campaign
Applies to versions: Not applicable

contains

Queries whether an entry is contained in the blacklist in Episerver Campaign. This method queries only exact matches.

If, for example, "*@example.com" is contained in the blacklist and you query john@example.com using this method, false is returned. If you query @example.com, true is returned. To a query both exact matches as well as wildcards, use the isBlacklisted method.

Type: boolean

Parameters

NameTypeValue

sessionId

String

ID of the session

entry

String

Entry to be queried

Return values

  • true: Entry is contained in the blacklist
  • false: Entry is not contained in the blacklist

Code structure

boolean contains(String sessionId, String entry)

Last updated: Apr 24, 2018