Udostępnij za pośrednictwem


ContactFieldFactory Class

Definition

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.

public ref class ContactFieldFactory sealed : IContactFieldFactory, IContactInstantMessageFieldFactory, IContactLocationFieldFactory
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ContactFieldFactory final : IContactFieldFactory, IContactInstantMessageFieldFactory, IContactLocationFieldFactory
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class ContactFieldFactory final : IContactFieldFactory, IContactInstantMessageFieldFactory, IContactLocationFieldFactory
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ContactFieldFactory : IContactFieldFactory, IContactInstantMessageFieldFactory, IContactLocationFieldFactory
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class ContactFieldFactory : IContactFieldFactory, IContactInstantMessageFieldFactory, IContactLocationFieldFactory
function ContactFieldFactory()
Public NotInheritable Class ContactFieldFactory
Implements IContactFieldFactory, IContactInstantMessageFieldFactory, IContactLocationFieldFactory
Inheritance
Object Platform::Object IInspectable ContactFieldFactory
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
contactsSystem

Constructors

ContactFieldFactory()

Creates an instance of the ContactFieldFactoryclass.

Note

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

Methods

CreateField(String, ContactFieldType, ContactFieldCategory)

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.

CreateField(String, ContactFieldType)

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.

CreateField(String, String, ContactFieldType, ContactFieldCategory)

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.

CreateInstantMessage(String, ContactFieldCategory, String, String, Uri)

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.

CreateInstantMessage(String, ContactFieldCategory)

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.

CreateInstantMessage(String)

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.

CreateLocation(String, ContactFieldCategory, String, String, String, String, String)

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.

CreateLocation(String, ContactFieldCategory)

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.

CreateLocation(String)

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.

Applies to