I​Contact​Field​Factory I​Contact​Field​Factory I​Contact​Field​Factory Interface

Definition

Note

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

Creates fields that contain information about a contact. Available only to apps that support the Contacts contract.

public interface IContactFieldFactorypublic interface IContactFieldFactoryPublic Interface IContactFieldFactory
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Methods

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 ContactField
Parameters
name
System.String System.String System.String

The name of the field.

value
System.String System.String System.String

The value the field contains.

category
ContactFieldCategory ContactFieldCategory ContactFieldCategory

The category the field belongs to.

Returns

A field that you can add to a Contact object.

Attributes

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 ContactField
Parameters
value
System.String System.String System.String

The value for the field.

Returns

A field that you can add to a Contact object.

Attributes

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 ContactField
Parameters
value
System.String System.String System.String

The value of the field.

category
ContactFieldCategory ContactFieldCategory ContactFieldCategory

The category the field belongs to.

Returns

A field that you can add to a Contact object.

Attributes