OabRecord Class

A record of an offline address book: the header record, which describes the address list, or the record of an Address Book object (a user, a contact, a distribution list...). The values are Int32, Boolean, String, byte arrays, and arrays of them for the multi-valued properties.

public sealed class OabRecord

Constructors

NameDescription
OabRecord()

OabRecord()

OabRecord.cs
public OabRecord()

No documentation is available.

Properties

NameDescription
AccountGets the account name (PidTagAccount).
BusinessTelephoneNumberGets the business telephone number (PidTagBusinessTelephoneNumber).
CompanyNameGets the company (PidTagCompanyName).
DepartmentNameGets the department (PidTagDepartmentName).
DisplayNameGets the display name (PidTagDisplayName).
DisplayTypeGets the display type (PidTagDisplayType): 0 for a mailbox user, 1 for a distribution list, 6 for a remote mail user...
EmailAddressGets the X500 distinguished name (PidTagEmailAddress), the primary key of the record.
GivenNameGets the given name (PidTagGivenName).
MobileTelephoneNumberGets the mobile telephone number (PidTagMobileTelephoneNumber).
ObjectTypeGets the type of the object (PidTagObjectType): 6 for a mail user, 8 for a distribution list.
OfficeLocationGets the office location (PidTagOfficeLocation).
ProxyAddressesGets the proxy addresses (PidTagAddressBookProxyAddresses), such as SMTP:laura@example.com.
SmtpAddressGets the SMTP address (PidTagSmtpAddress).
SurnameGets the surname (PidTagSurname).
TitleGets the job title (PidTagTitle).
ValuesGets the values of the record, by property tag. A property the record does not have is absent.

Gets the account name (PidTagAccount).

public string? Account { get; }

Property value

string?

BusinessTelephoneNumber

OabRecord.cs

Gets the business telephone number (PidTagBusinessTelephoneNumber).

public string? BusinessTelephoneNumber { get; }

Property value

string?

CompanyName

OabRecord.cs

Gets the company (PidTagCompanyName).

public string? CompanyName { get; }

Property value

string?

DepartmentName

OabRecord.cs

Gets the department (PidTagDepartmentName).

public string? DepartmentName { get; }

Property value

string?

DisplayName

OabRecord.cs

Gets the display name (PidTagDisplayName).

public string? DisplayName { get; }

Property value

string?

DisplayType

OabRecord.cs

Gets the display type (PidTagDisplayType): 0 for a mailbox user, 1 for a distribution list, 6 for a remote mail user...

public int? DisplayType { get; }

Property value

int?

EmailAddress

OabRecord.cs

Gets the X500 distinguished name (PidTagEmailAddress), the primary key of the record.

public string? EmailAddress { get; }

Property value

string?

GivenName

OabRecord.cs

Gets the given name (PidTagGivenName).

public string? GivenName { get; }

Property value

string?

MobileTelephoneNumber

OabRecord.cs

Gets the mobile telephone number (PidTagMobileTelephoneNumber).

public string? MobileTelephoneNumber { get; }

Property value

string?

ObjectType

OabRecord.cs

Gets the type of the object (PidTagObjectType): 6 for a mail user, 8 for a distribution list.

public int? ObjectType { get; }

Property value

int?

OfficeLocation

OabRecord.cs

Gets the office location (PidTagOfficeLocation).

public string? OfficeLocation { get; }

Property value

string?

ProxyAddresses

OabRecord.cs

Gets the proxy addresses (PidTagAddressBookProxyAddresses), such as SMTP:laura@example.com.

public IReadOnlyList<string> ProxyAddresses { get; }

Property value

IReadOnlyList<string>

SmtpAddress

OabRecord.cs

Gets the SMTP address (PidTagSmtpAddress).

public string? SmtpAddress { get; }

Property value

string?

Gets the surname (PidTagSurname).

public string? Surname { get; }

Property value

string?

Gets the job title (PidTagTitle).

public string? Title { get; }

Property value

string?

Gets the values of the record, by property tag. A property the record does not have is absent.

public IDictionary<MapiPropertyTag, object> Values { get; }

Methods

NameDescription
Find(ushort)Gets the value of a property, whatever its type.
GetString(ushort)Returns the value of a string property, of type MapiPropertyType.Unicode or MapiPropertyType.String8.
ToString()Returns the display name, or the address.

Find(ushort)

OabRecord.cs

Gets the value of a property, whatever its type.

public object? Find(ushort id)

Parameters

id ushort
The identifier of the property, such as 0x3001 for the display name.

Returns

object? The value, or null when the record does not have the property.

GetString(ushort)

OabRecord.cs

Returns the value of a string property, of type MapiPropertyType.Unicode or MapiPropertyType.String8.

public string? GetString(ushort id)

Parameters

id ushort
The identifier of the property.

Returns

string? The value, or null.

ToString()

OabRecord.cs

Returns the display name, or the address.

public override string ToString()

Returns

string The display name.