locked
ContactFieldType and ContactFieldCategory in Windows 8.1

    Question

  • I'm using 8.1, and don't see a Type of Category for contact fields, for example the object in the Contact.Emails. But I see a Kind field in the same object though. Going forward, should I use Kind and not Type or Category?

    Thanks.



    Saturday, February 08, 2014 11:55 PM

Answers

  • what you need to do then? you can check the kind?

    contact.Emails.Where(x => x.Kind == ContactEmailKind.Personal).ToArray()


    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

    Sunday, February 09, 2014 3:18 PM
  • I think so because Type and Category are not available.
    Sunday, February 09, 2014 4:25 PM
  • Contact.Emails should return an System.Collections.Generic.IList<ContactEmail> object, and ContactEmail class does not have any Type or Category Properties, only Kind exist.

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.


    Wednesday, February 19, 2014 6:56 AM
    Moderator

All replies

  • what you try to do? be a contactpicker or recieve contact info?

    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

    Sunday, February 09, 2014 1:27 PM
  • Receive contact info.
    Sunday, February 09, 2014 2:08 PM
  • what you need to do then? you can check the kind?

    contact.Emails.Where(x => x.Kind == ContactEmailKind.Personal).ToArray()


    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

    Sunday, February 09, 2014 3:18 PM
  • I think so because Type and Category are not available.
    Sunday, February 09, 2014 4:25 PM
  • Contact.Emails should return an System.Collections.Generic.IList<ContactEmail> object, and ContactEmail class does not have any Type or Category Properties, only Kind exist.

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.


    Wednesday, February 19, 2014 6:56 AM
    Moderator