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 IContactFieldFactorypublic interface IContactFieldFactoryPublic Interface IContactFieldFactory// You can use this interface in JavaScript.
- Attributes
| 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) 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// You can use this method in JavaScript.
- name
- PlatForm::String String String String
The name of the field.
- value
- PlatForm::String String String String
The value the field contains.
The type of field.
The category the field belongs to.
A field that you can add to a Contact object.
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// You can use this method in JavaScript.
- value
- PlatForm::String String String String
The value for the field.
The type of field.
A field that you can add to a Contact object.
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// You can use this method in JavaScript.
- value
- PlatForm::String String String String
The value of the field.
The type of field.
The category the field belongs to.
A field that you can add to a Contact object.