Class ContactAccountAction
- Namespace
 - CMS.ContactManagement
 
- Assembly
 - CMS.ContactManagement.dll
 
Class for Change contact account action
[Obsolete("Class is deprecated and will be removed in next version.")]
public class ContactAccountAction : ContactAutomationAction
  - Inheritance
 - 
      objectAutomationActionContactAccountAction
 
- Inherited Members
 
- Extension Methods
 
Constructors
ContactAccountAction()
public ContactAccountAction()
  Properties
Account
Account info object
protected virtual AccountInfo Account { get; }
  Property Value
AccountGUID
Account identifier.
public virtual Guid AccountGUID { get; }
  Property Value
- Guid
 
ContactAction
Gets current action - 0 for ADD TO, 1 for REMOVE FROM account.
public virtual int ContactAction { get; }
  Property Value
- int
 
Role
Role info object Null value possible
protected virtual ContactRoleInfo Role { get; }
  Property Value
RoleID
ID of role
protected virtual int RoleID { get; }
  Property Value
- int
 
RoleName
Contact role identifier.
public virtual string RoleName { get; }
  Property Value
- string
 
Methods
Execute()
Executes current action
public override void Execute()
  SetAccountContactRelation()
Inserts or updated relation between contact and account
protected void SetAccountContactRelation()