Class ContactInfo
- Namespace
- CMS.ContactManagement
- Assembly
- CMS.ContactManagement.dll
ContactInfo data container class.
[InfoCache(InfoCacheBy.ID|InfoCacheBy.Guid)]
public class ContactInfo : AbstractInfo<ContactInfo, IContactInfoProvider>, IExtensible, IInfo, IAdvancedDataContainer, ICMSObject, IHierarchicalDataContainer, IDataContainer, ISimpleDataContainer, IVirtualHierarchicalObject, IHierarchicalObject, INameIndexable, IMacroObject, IInfoWithId, IInfoWithGuid
- Inheritance
-
objectContactInfo
- Implements
- Inherited Members
- Extension Methods
Constructors
ContactInfo()
Constructor - Creates an empty ContactInfo object.
public ContactInfo()
ContactInfo(DataRow)
Constructor - Creates a new ContactInfo object from the given DataRow.
public ContactInfo(DataRow dr)
Parameters
dr
DataRowDataRow with the object data
Fields
OBJECT_TYPE
Object type
public const string OBJECT_TYPE = "om.contact"
Field Value
- string
TYPEINFO
Type information.
public static ObjectTypeInfo TYPEINFO
Field Value
Properties
Accounts
Collection of the accounts belonging to the object.
public virtual IInfoObjectCollection<AccountInfo> Accounts { get; }
Property Value
ContactAddress1
Gets or sets the first line of the contact's address.
[DatabaseField]
public virtual string ContactAddress1 { get; set; }
Property Value
- string
ContactAge
Gets the contact's age (returns 0 if contact's birthday is not set).
public virtual int ContactAge { get; }
Property Value
- int
ContactBirthday
Gets or sets the contact's birth date.
[DatabaseField]
public virtual DateTime ContactBirthday { get; set; }
Property Value
- DateTime
ContactBusinessPhone
Gets or sets the contact's business phone number.
[DatabaseField]
public virtual string ContactBusinessPhone { get; set; }
Property Value
- string
ContactCampaign
Gets or sets the contact's campaign
[DatabaseField]
public virtual string ContactCampaign { get; set; }
Property Value
- string
ContactCity
Gets or sets the contact's city.
[DatabaseField]
public virtual string ContactCity { get; set; }
Property Value
- string
ContactCompanyName
Gets or sets the contact's e-company name.
[DatabaseField]
public virtual string ContactCompanyName { get; set; }
Property Value
- string
ContactCountryID
Gets or sets the contact's country ID.
[DatabaseField]
public virtual int ContactCountryID { get; set; }
Property Value
- int
ContactCreated
Gets or sets the the date and time when the contact was created.
[DatabaseField]
public virtual DateTime ContactCreated { get; set; }
Property Value
- DateTime
ContactCreatedInAdministration
Determines whether the contact was created manually from the administration or automatically during the request.
public virtual bool ContactCreatedInAdministration { get; set; }
Property Value
- bool
ContactDescriptiveName
Gets the contact full name with 'merged'/'global' flags.
[RegisterProperty(Hidden = true)]
public virtual string ContactDescriptiveName { get; }
Property Value
- string
ContactEmail
Gets or sets the contact's e-mail address.
[DatabaseField]
public virtual string ContactEmail { get; set; }
Property Value
- string
ContactFirstName
Gets or sets the contact's first name.
[DatabaseField]
public virtual string ContactFirstName { get; set; }
Property Value
- string
ContactGUID
Gets or sets the contact's unique identifier.
[DatabaseField]
public virtual Guid ContactGUID { get; set; }
Property Value
- Guid
ContactGender
Gets or sets the contact's gender.
[DatabaseField]
public virtual int ContactGender { get; set; }
Property Value
- int
ContactGroups
Collection of all contacts groups. Value is cached for 1 minute.
public virtual IInfoObjectCollection<ContactGroupInfo> ContactGroups { get; }
Property Value
ContactID
Gets or sets the contact's ID.
[DatabaseField]
public virtual int ContactID { get; set; }
Property Value
- int
ContactJobTitle
Gets or sets the contact's job title.
[DatabaseField]
public virtual string ContactJobTitle { get; set; }
Property Value
- string
ContactLastModified
Gets or sets the date and time when the contact was last modified.
[DatabaseField]
public virtual DateTime ContactLastModified { get; set; }
Property Value
- DateTime
ContactLastName
Gets or sets the contact's last name.
[DatabaseField]
public virtual string ContactLastName { get; set; }
Property Value
- string
ContactMiddleName
Gets or sets the contact's middle name.
[DatabaseField]
public virtual string ContactMiddleName { get; set; }
Property Value
- string
ContactMobilePhone
Gets or sets the contact's mobile phone number.
[DatabaseField]
public virtual string ContactMobilePhone { get; set; }
Property Value
- string
ContactMonitored
Gets or sets whether this contact is monitored.
[DatabaseField]
public virtual bool ContactMonitored { get; set; }
Property Value
- bool
ContactNotes
Gets or sets the notes for this contact.
[DatabaseField]
public virtual string ContactNotes { get; set; }
Property Value
- string
ContactOwnerUserID
Gets or sets the ID of the user that owns this contact.
[DatabaseField]
public virtual int ContactOwnerUserID { get; set; }
Property Value
- int
ContactStateID
Gets or sets the contact's state ID.
[DatabaseField]
public virtual int ContactStateID { get; set; }
Property Value
- int
ContactStatusID
Gets or sets the contact's status ID.
[DatabaseField]
public virtual int ContactStatusID { get; set; }
Property Value
- int
ContactZIP
Gets or sets the contact's postal code.
[DatabaseField]
public virtual string ContactZIP { get; set; }
Property Value
- string
LastActivity
Last activity of the contact.
public virtual ActivityInfo LastActivity { get; }
Property Value
Methods
DeleteObject()
Deletes the object using appropriate provider.
protected override void DeleteObject()
MarkAsMerged()
Marks the contact as merged. Affects how changed columns are propagated to the log changes queue.
public void MarkAsMerged()
RegisterProperties()
Register the custom properties
protected override sealed void RegisterProperties()
RemoveObjectDependencies(bool, bool)
Removes object dependencies.
protected override void RemoveObjectDependencies(bool deleteAll = false, bool clearHashtables = true)
Parameters
deleteAll
boolclearHashtables
bool
ResetChanges()
Resets the object changes and keeps the new values as unchanged according to the asUnchanged parameter.
public override void ResetChanges()
SetObject()
Updates the object using appropriate provider.
protected override void SetObject()