ContactFieldFactory class

Applies to Windows and Windows Phone

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

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


var contactFieldFactory = new Windows.ApplicationModel.Contacts.ContactFieldFactory();

Attributes

[Deprecated()]
[MarshalingBehavior(Agile)]
[Version(0x06020000)]

Members

The ContactFieldFactory class has these types of members:

Constructors

The ContactFieldFactory class has these constructors.

ConstructorDescription
ContactFieldFactory 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

The ContactFieldFactory class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
CreateField(String,ContactFieldType) 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.
CreateField(String,ContactFieldType,ContactFieldCategory) 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.
CreateField(String,String,ContactFieldType,ContactFieldCategory) 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.
CreateInstantMessage(String) 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.
CreateInstantMessage(String,ContactFieldCategory) 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.
CreateInstantMessage(String,ContactFieldCategory,String,String,Uri) 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.
CreateLocation(String) 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.
CreateLocation(String,ContactFieldCategory) 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.
CreateLocation(String,ContactFieldCategory,String,String,String,String,String) 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.

 

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.ApplicationModel.Contacts
Windows::ApplicationModel::Contacts [C++]

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft