Click or drag to resize
PersonaService Class
Provides methods to determine membership of contacts in personas.
Inheritance Hierarchy
SystemObject
  CMS.PersonasPersonaService

Namespace: CMS.Personas
Assembly: CMS.Personas (in CMS.Personas.dll) Version: 8.2.23
Syntax
C#
public sealed class PersonaService : IPersonaService

The PersonaService type exposes the following members.

Constructors
  NameDescription
Public methodPersonaService
Top
Methods
  NameDescription
Public methodGetContactsForPersona
Gets all contacts that fulfills persona definition.
Public methodGetPersonaForContact
Gets persona the specified contact is assigned to or null of contact does not belong to any persona.
Public methodIsContactInPersona
Returns true when contact belongs to specified persona.
Top
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
Remarks
This is the default implementation of the IPersonaService interface. Please obtain its instance via PersonasFactory. Contact can be in one persona only - contact belongs to persona if score quotient (contact score points divided by persona score limit) is the highest one of all personas.
See Also