ContactFieldFactory ContactFieldFactory ContactFieldFactory ContactFieldFactory Class

Creates fields that contain information about a contact. You can then add these fields to a Contact object to create the contact. This class is available only to apps that support the Contact contract.

Syntax

Declaration

public sealed class ContactFieldFactorypublic sealed class ContactFieldFactoryPublic NotInheritable Class ContactFieldFactorypublic sealed class ContactFieldFactory

Constructors summary

Note

ContactFieldFactory may be altered or unavailable for releases after Windows 8.1. Instead, use ContactAddress, ContactPhone, ContactSignificantOther, Contact, ContactEmail, ContactWebsite, ContactJobInfo, or ContactDate.

Creates an instance of the ContactFieldFactory class.

Methods summary

Note

IContactFieldFactory may be altered or unavailable for releases after Windows 8.1. Instead, use ContactPhone or ContactEmail.

Creates a field to contain information about a contact.

Note

IContactFieldFactory may be altered or unavailable for releases after Windows 8.1. Instead, use ContactPhone or ContactEmail.

Creates a field to contain information about a contact.

Note

IContactFieldFactory may be altered or unavailable for releases after Windows 8.1. Instead, use ContactPhone or ContactEmail.

Creates a field to contain information about a contact.

Note

IContactInstantMessageFieldFactory may be altered or unavailable for releases after Windows 8.1. Instead, use ContactConnectedServiceAccount.

Creates a field to contain information about a contact's instant messaging account.

Note

IContactInstantMessageFieldFactory may be altered or unavailable for releases after Windows 8.1. Instead, use ContactConnectedServiceAccount.

Creates a field to contain information about a contact's instant messaging account.

Note

IContactInstantMessageFieldFactory may be altered or unavailable for releases after Windows 8.1. Instead, use ContactConnectedServiceAccount.

Creates a field to contain information about a contact's instant messaging account.

Note

IContactLocationFieldFactory may be altered or unavailable for releases after Windows 8.1. Instead, use ContactAddress.

Creates a field to contain information about a contact's location.

Note

IContactLocationFieldFactory may be altered or unavailable for releases after Windows 8.1. Instead, use ContactAddress.

Creates a field to contain information about a contact's location.

Note

IContactLocationFieldFactory may be altered or unavailable for releases after Windows 8.1. Instead, use ContactAddress.

Creates a field to contain information about a contact's location.

Constructors

Methods

  • CreateField(String, String, ContactFieldType, ContactFieldCategory)
    CreateField(String, String, ContactFieldType, ContactFieldCategory)
    CreateField(String, String, ContactFieldType, ContactFieldCategory)
    CreateField(String, String, ContactFieldType, ContactFieldCategory)
    Note

    IContactFieldFactory may be altered or unavailable for releases after Windows 8.1. Instead, use ContactPhone or ContactEmail.

    Creates a field to contain information about a contact.

    public ContactField CreateField(String name, String value, ContactFieldType type, ContactFieldCategory category)public ContactField CreateField(String name, String value, ContactFieldType type, ContactFieldCategory category)Public Function CreateField(name As String, value As String, type As ContactFieldType, category As ContactFieldCategory) As ContactFieldpublic ContactField CreateField(String name, String value, ContactFieldType type, ContactFieldCategory category)

    Parameters

    Returns

  • CreateField(String, ContactFieldType)
    CreateField(String, ContactFieldType)
    CreateField(String, ContactFieldType)
    CreateField(String, ContactFieldType)
    Note

    IContactFieldFactory may be altered or unavailable for releases after Windows 8.1. Instead, use ContactPhone or ContactEmail.

    Creates a field to contain information about a contact.

    public ContactField CreateField(String value, ContactFieldType type)public ContactField CreateField(String value, ContactFieldType type)Public Function CreateField(value As String, type As ContactFieldType) As ContactFieldpublic ContactField CreateField(String value, ContactFieldType type)

    Parameters

    Returns

  • CreateField(String, ContactFieldType, ContactFieldCategory)
    CreateField(String, ContactFieldType, ContactFieldCategory)
    CreateField(String, ContactFieldType, ContactFieldCategory)
    CreateField(String, ContactFieldType, ContactFieldCategory)
    Note

    IContactFieldFactory may be altered or unavailable for releases after Windows 8.1. Instead, use ContactPhone or ContactEmail.

    Creates a field to contain information about a contact.

    public ContactField CreateField(String value, ContactFieldType type, ContactFieldCategory category)public ContactField CreateField(String value, ContactFieldType type, ContactFieldCategory category)Public Function CreateField(value As String, type As ContactFieldType, category As ContactFieldCategory) As ContactFieldpublic ContactField CreateField(String value, ContactFieldType type, ContactFieldCategory category)

    Parameters

    Returns

  • CreateInstantMessage(String)
    CreateInstantMessage(String)
    CreateInstantMessage(String)
    CreateInstantMessage(String)
    Note

    IContactInstantMessageFieldFactory may be altered or unavailable for releases after Windows 8.1. Instead, use ContactConnectedServiceAccount.

    Creates a field to contain information about a contact's instant messaging account.

    public ContactInstantMessageField CreateInstantMessage(String userName)public ContactInstantMessageField CreateInstantMessage(String userName)Public Function CreateInstantMessage(userName As String) As ContactInstantMessageFieldpublic ContactInstantMessageField CreateInstantMessage(String userName)

    Parameters

    • userName
      System.String
      System.String
      System.String
      System.String

      The user name for the instant messaging account.

    Returns

  • CreateInstantMessage(String, ContactFieldCategory)
    CreateInstantMessage(String, ContactFieldCategory)
    CreateInstantMessage(String, ContactFieldCategory)
    CreateInstantMessage(String, ContactFieldCategory)
    Note

    IContactInstantMessageFieldFactory may be altered or unavailable for releases after Windows 8.1. Instead, use ContactConnectedServiceAccount.

    Creates a field to contain information about a contact's instant messaging account.

    public ContactInstantMessageField CreateInstantMessage(String userName, ContactFieldCategory category)public ContactInstantMessageField CreateInstantMessage(String userName, ContactFieldCategory category)Public Function CreateInstantMessage(userName As String, category As ContactFieldCategory) As ContactInstantMessageFieldpublic ContactInstantMessageField CreateInstantMessage(String userName, ContactFieldCategory category)

    Parameters

    Returns

  • CreateInstantMessage(String, ContactFieldCategory, String, String, Uri)
    CreateInstantMessage(String, ContactFieldCategory, String, String, Uri)
    CreateInstantMessage(String, ContactFieldCategory, String, String, Uri)
    CreateInstantMessage(String, ContactFieldCategory, String, String, Uri)
    Note

    IContactInstantMessageFieldFactory may be altered or unavailable for releases after Windows 8.1. Instead, use ContactConnectedServiceAccount.

    Creates a field to contain information about a contact's instant messaging account.

    public ContactInstantMessageField CreateInstantMessage(String userName, ContactFieldCategory category, String service, String displayText, Uri verb)public ContactInstantMessageField CreateInstantMessage(String userName, ContactFieldCategory category, String service, String displayText, Uri verb)Public Function CreateInstantMessage(userName As String, category As ContactFieldCategory, service As String, displayText As String, verb As Uri) As ContactInstantMessageFieldpublic ContactInstantMessageField CreateInstantMessage(String userName, ContactFieldCategory category, String service, String displayText, Uri verb)

    Parameters

    • userName
      System.String
      System.String
      System.String
      System.String

      The user name of the instant messaging account.

    • category

      The category the field belongs to.

    • service
      System.String
      System.String
      System.String
      System.String

      The name of the instant messaging service.

    • displayText
      System.String
      System.String
      System.String
      System.String

      The text to display to prompt an instant messaging conversation.

    • verb

      The Uniform Resource Identifier (URI) that starts an instant messaging conversation.

    Returns

  • CreateLocation(String)
    CreateLocation(String)
    CreateLocation(String)
    CreateLocation(String)
    Note

    IContactLocationFieldFactory may be altered or unavailable for releases after Windows 8.1. Instead, use ContactAddress.

    Creates a field to contain information about a contact's location.

    public ContactLocationField CreateLocation(String unstructuredAddress)public ContactLocationField CreateLocation(String unstructuredAddress)Public Function CreateLocation(unstructuredAddress As String) As ContactLocationFieldpublic ContactLocationField CreateLocation(String unstructuredAddress)

    Parameters

    • unstructuredAddress
      System.String
      System.String
      System.String
      System.String

      The address of the contact in an unstructured format.

    Returns

  • CreateLocation(String, ContactFieldCategory)
    CreateLocation(String, ContactFieldCategory)
    CreateLocation(String, ContactFieldCategory)
    CreateLocation(String, ContactFieldCategory)
    Note

    IContactLocationFieldFactory may be altered or unavailable for releases after Windows 8.1. Instead, use ContactAddress.

    Creates a field to contain information about a contact's location.

    public ContactLocationField CreateLocation(String unstructuredAddress, ContactFieldCategory category)public ContactLocationField CreateLocation(String unstructuredAddress, ContactFieldCategory category)Public Function CreateLocation(unstructuredAddress As String, category As ContactFieldCategory) As ContactLocationFieldpublic ContactLocationField CreateLocation(String unstructuredAddress, ContactFieldCategory category)

    Parameters

    Returns

  • CreateLocation(String, ContactFieldCategory, String, String, String, String, String)
    CreateLocation(String, ContactFieldCategory, String, String, String, String, String)
    CreateLocation(String, ContactFieldCategory, String, String, String, String, String)
    CreateLocation(String, ContactFieldCategory, String, String, String, String, String)
    Note

    IContactLocationFieldFactory may be altered or unavailable for releases after Windows 8.1. Instead, use ContactAddress.

    Creates a field to contain information about a contact's location.

    public ContactLocationField CreateLocation(String unstructuredAddress, ContactFieldCategory category, String street, String city, String region, String country, String postalCode)public ContactLocationField CreateLocation(String unstructuredAddress, ContactFieldCategory category, String street, String city, String region, String country, String postalCode)Public Function CreateLocation(unstructuredAddress As String, category As ContactFieldCategory, street As String, city As String, region As String, country As String, postalCode As String) As ContactLocationFieldpublic ContactLocationField CreateLocation(String unstructuredAddress, ContactFieldCategory category, String street, String city, String region, String country, String postalCode)

    Parameters

    • unstructuredAddress
      System.String
      System.String
      System.String
      System.String

      The address of the contact in an unstructured format.

    • category

      The category the field belongs to.

    • street
      System.String
      System.String
      System.String
      System.String

      The street address for the address.

    • city
      System.String
      System.String
      System.String
      System.String

      The name of the city for the address.

    • region
      System.String
      System.String
      System.String
      System.String

      The name of the region for the address.

    • country
      System.String
      System.String
      System.String
      System.String

      The name of the country for the address.

    • postalCode
      System.String
      System.String
      System.String
      System.String

      The postal code for the address.

    Returns

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ActivatableAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute

Details

Assembly

Windows.ApplicationModel.Contacts.dll