• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class Contact

Represents a contact item (IPM.Contact), extending Message with contact-specific properties defined in [MS-OXOCNTC].

Inheritance
object
Message
Contact
PstContact
Inherited Members
Message.Create(MapiMessage)
Message.AlternateRecipientAllowed
Message.AutoForwarded
Message.Body
Message.BodyFormat
Message.BodyRtf
Message.Categories
Message.Class
Message.Codepage
Message.Companies
Message.CreationTime
Message.CultureInfo
Message.Encoding
Message.EntryID
Message.Flags
Message.HtmlBody
Message.Importance
Message.InternetCodepage
Message.LastModificationTime
Message.LocaleId
Message.MessageClass
Message.Mileage
Message.NoAging
Message.IsConflict
Message.MarkForDownload
Message.IsRemoteDeletionMarked
Message.Priority
Message.Private
Message.Reminder
Message.RetentionExpirationDate
Message.SetSender(string)
Message.SetSender(string, string)
Message.SetSentRepresenting(string, string)
Message.Sensitivity
Message.Size
Message.Subject
Message.Headers
Message.UnRead
Message.SideEffects
Message.Save()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Mail.Mapi.API
Assembly: DRIT.Mail.dll
Syntax
public class Contact : Message

Constructors

View Source

Contact(MapiContact)

Initialises a new instance of Contact backed by the given MAPI contact node.

Declaration
public Contact(MapiContact mapiContact)
Parameters
Type Name Description
MapiContact mapiContact

The underlying MAPI contact property accessor.

Properties

View Source

BillingInformation

Gets or sets the billing information for the contact.

Declaration
public string BillingInformation { get; set; }
Property Value
Type Description
string
View Source

FileUnder

Gets the resolved display string used to file the contact, derived from PidLidFileUnderId.

Declaration
public string FileUnder { get; }
Property Value
Type Description
string
Remarks

Reference: MS-OXOCNTC 2.2.1.1.12 PidLidFileUnder and 2.2.1.1.13 PidLidFileUnderId Properties

View Source

HomeAddress

Gets the home address of the contact.

Declaration
public IAddress HomeAddress { get; }
Property Value
Type Description
IAddress
View Source

OtherAddress

Gets the other (additional) address of the contact.

Declaration
public IAddress OtherAddress { get; }
Property Value
Type Description
IAddress
View Source

PostalAddress

Gets the postal address of the contact, which mirrors the address selected by PostalAddressId.

Declaration
public IAddress PostalAddress { get; }
Property Value
Type Description
IAddress
View Source

PostalAddressId

Gets or sets which address (HomeAddress, WorkAddress, OtherAddress, or none) is used as the primary postal address.

Declaration
public PostalAddressId? PostalAddressId { get; set; }
Property Value
Type Description
PostalAddressId?
Remarks

Reference: MS-OXOCNTC 2.2.1.3.3 PidLidPostalAddressId Property

View Source

WorkAddress

Gets the work address of the contact.

Declaration
public IAddress WorkAddress { get; }
Property Value
Type Description
IAddress

Methods

View Source

CreateNew(MapiContact)

Creates a new Contact with default property values applied.

Declaration
public static Contact CreateNew(MapiContact mapiContact)
Parameters
Type Name Description
MapiContact mapiContact

The underlying MAPI contact node.

Returns
Type Description
Contact

A new Contact instance with default values set.

View Source

SetDefaultValues()

Sets the default values.

Declaration
protected override void SetDefaultValues()
Overrides
Message.SetDefaultValues()
  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX