IContactFieldFactory IContactFieldFactory IContactFieldFactory IContactFieldFactory 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 IContactFieldFactory
public interface IContactFieldFactory
Public Interface IContactFieldFactory
// You can't instantiate an interface directly in JavaScript. You can use objects that implement the interface, however.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
contactsSystem

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(Platform::String name, Platform::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
var contactField = iContactFieldFactory.createField(name, value, type, category);
Parameters
name
Platform::String String String String

The name of the field.

value
Platform::String String String String

The value the field contains.

Returns

A field that you can add to a Contact object.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
contactsSystem
See Also

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(Platform::String value, ContactFieldType type)
public ContactField CreateField(String value, ContactFieldType type)
Public Function CreateField(value As String, type As ContactFieldType) As ContactField
var contactField = iContactFieldFactory.createField(value, type);
Parameters
value
Platform::String String String String

The value for the field.

Returns

A field that you can add to a Contact object.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
contactsSystem
See Also

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(Platform::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
var contactField = iContactFieldFactory.createField(value, type, category);
Parameters
value
Platform::String String String String

The value of the field.

Returns

A field that you can add to a Contact object.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
contactsSystem
See Also