Enum FileAsMapping
Contents
[
Hide
]FileAsMapping enumeration
Specifies how to generate and recompute the value of the FileAs property when other contact name properties change.
public enum FileAsMapping : long
Values
| Name | Value | Description |
|---|---|---|
| Empty | 0 | Empty value. No file-as mapping is applied. |
| DisplayName | 12289 | DisplayName. Uses the contact’s display name as the file-as value. |
| FirstName | 14854 | GivenName. Uses the first name as the file-as value. |
| LastName | 14865 | Surname. Uses the last name as the file-as value. |
| Organization | 14870 | CompanyName. Uses the organization or company name as the file-as value. |
| FirstMiddleLastGen | 14854 | GivenName MiddleName Surname Generation. Files under first name with middle name and suffix. |
| LastFirstMiddle | 32791 | Surname, GivenName MiddleName. Files under last name with first and middle name. |
| LastFirstMiddle2 | 32816 | SurnameGivenName MiddleName. Files under last name without comma, with middle name. |
| LastFirstMiddle3 | 32817 | Surname GivenName MiddleName. Files under last name with space, with middle name. |
| OrgLastFirstMiddle | 32792 | CompanyName\r\nSurname, GivenName MiddleName. Files under company name, then name. |
| OrgLastFirstMiddle2 | 32818 | CompanyName\r\nSurnameGivenName MiddleName. Files under company name, then last name without comma. |
| OrgLastFirstMiddle3 | 32819 | CompanyName\r\nSurname GivenName MiddleName. Files under company name, then last name with space. |
| LastFirstMiddleOrg | 32793 | Surname, GivenName MiddleName\r\nCompanyName. Files under name, then company name. |
| LastFirstMiddleOrg2 | 32820 | SurnameGivenName MiddleName\r\nCompanyName. Files under last name without comma, then company. |
| LastFirstMiddleOrg3 | 32821 | Surname GivenName PidTagMiddleName\r\nCompanyName. Files under last name with space, then company. |
| LastFirstMiddleGen | 32822 | Surname GivenName MiddleName Generation. Files under last name with full name and suffix. |
| LastFirstMiddleGen2 | 32824 | SurnameGivenName MiddleName Generation. Files under last name without comma, with full name and suffix. |
| BestMatch | 4294967293 | Specifies that, when displaying the contact, the application should attempt to use the current value of dispidFileUnder and other contact properties to find a “best match” for dispidFileUnderId. |
| AccordingToLocale | 4294967294 | Specifies that, when displaying the contact, the application should choose the appropriate default values (according to the language locale) for dispidFileUnderId and update dispidFileUnder to match the choice. |
| None | 4294967295 | Specifies that FileUnder is user-provided and should not be changed when another contact name property changes. I.e. value of FileUnder is not constructed from other properties. |
Remarks
This enumeration defines the mapping rules for generating the FileAs property value based on other contact name properties. The FileAs property is used by contact management applications to determine how to sort and display contacts.
The values correspond to MS-OXPROPS revision 16.2 from 7/31/2014 and include various combinations of first name, last name, company name, and generational suffixes.
Use FileAsMapping to specify the rule for automatically generating the FileAs value.
Examples
[C#]
var contact = new Contact();
contact.GivenName = "John";
contact.Surname = "Doe";
contact.CompanyName = "Contoso Ltd";
// Automatically generate FileAs based on company name, then name
contact.FileAsMapping = FileAsMapping.OrgLastFirstMiddle;
// FileAs will be: "Contoso Ltd\nDoe, John"
See Also
- namespace Aspose.Email.PersonalInfo
- assembly Aspose.Email