Class Contact
Represents a contact item (IPM.Contact), extending Message with contact-specific properties defined in [MS-OXOCNTC].
Inherited Members
Namespace: DRIT.Mail.Mapi.API
Assembly: DRIT.Mail.dll
Syntax
public class Contact : Message
Constructors
View SourceContact(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 SourceBillingInformation
Gets or sets the billing information for the contact.
Declaration
public string BillingInformation { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
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
HomeAddress
Gets the home address of the contact.
Declaration
public IAddress HomeAddress { get; }
Property Value
| Type | Description |
|---|---|
| IAddress |
OtherAddress
Gets the other (additional) address of the contact.
Declaration
public IAddress OtherAddress { get; }
Property Value
| Type | Description |
|---|---|
| IAddress |
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 |
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
WorkAddress
Gets the work address of the contact.
Declaration
public IAddress WorkAddress { get; }
Property Value
| Type | Description |
|---|---|
| IAddress |
Methods
View SourceCreateNew(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. |
SetDefaultValues()
Sets the default values.
Declaration
protected override void SetDefaultValues()