• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Edit
Show / Hide Table of Contents

Read the LocalizedAddress

•
Version: 8
Some tooltip text!
• 1 minute to read
 • 1 minute to read

Reading the LocalizedAddress data structure is very straightforward. Simply loop over the LocalizedField lines and print out each field on each line.

The following code example demonstrates this using a ContactAgent to get a company and then looping over and printing out each address field.

using(ContactAgent ca = new ContactAgent())
{
  ContactEntity ce = ca.GetContactEntity(2);

  foreach (LocalizedField[] addressLine in ce.Address LocalizedAddress)
  {

    foreach (LocalizedField addressField in addressLine)
    {
      Console.WriteLine("Item: {0}, Value: {1}", addressField.Name, addressField.Value);
    }
  }
}
In This Article
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top