IContactLocationFieldFactory IContactLocationFieldFactory IContactLocationFieldFactory IContactLocationFieldFactory IContactLocationFieldFactory Interface

Definition

Note

IContactLocationFieldFactory may be altered or unavailable for releases after Windows 8.1. Instead, use ContactAddress.

Creates fields for a contact's location.

public : interface IContactLocationFieldFactory
struct winrt::Windows::ApplicationModel::Contacts::IContactLocationFieldFactory
public interface IContactLocationFieldFactory
Public Interface IContactLocationFieldFactory
// 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

CreateLocation(String) CreateLocation(String) CreateLocation(String) CreateLocation(String) CreateLocation(String)

Note

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.

public : ContactLocationField CreateLocation(Platform::String unstructuredAddress)
ContactLocationField CreateLocation(winrt::hstring unstructuredAddress) const;
public ContactLocationField CreateLocation(String unstructuredAddress)
Public Function CreateLocation(unstructuredAddress As String) As ContactLocationField
var contactLocationField = iContactLocationFieldFactory.createLocation(unstructuredAddress);
Parameters
unstructuredAddress
String String String

The address of the contact in an unstructured format.

Returns

A location 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

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

Note

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.

public : ContactLocationField CreateLocation(Platform::String unstructuredAddress, ContactFieldCategory category)
ContactLocationField CreateLocation(winrt::hstring unstructuredAddress, ContactFieldCategory category) const;
public ContactLocationField CreateLocation(String unstructuredAddress, ContactFieldCategory category)
Public Function CreateLocation(unstructuredAddress As String, category As ContactFieldCategory) As ContactLocationField
var contactLocationField = iContactLocationFieldFactory.createLocation(unstructuredAddress, category);
Parameters
unstructuredAddress
String String String

The address of the contact in an unstructured format.

category
ContactFieldCategory ContactFieldCategory ContactFieldCategory

The category the field belongs to.

Returns

A location 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

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

Note

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.

public : ContactLocationField CreateLocation(Platform::String unstructuredAddress, ContactFieldCategory category, Platform::String street, Platform::String city, Platform::String region, Platform::String country, Platform::String postalCode)
ContactLocationField CreateLocation(winrt::hstring unstructuredAddress, ContactFieldCategory category, winrt::hstring street, winrt::hstring city, winrt::hstring region, winrt::hstring country, winrt::hstring postalCode) const;
public ContactLocationField CreateLocation(String unstructuredAddress, ContactFieldCategory category, String street, String city, String region, String country, String postalCode)
Public Function CreateLocation(unstructuredAddress As String, category As ContactFieldCategory, street As String, city As String, region As String, country As String, postalCode As String) As ContactLocationField
var contactLocationField = iContactLocationFieldFactory.createLocation(unstructuredAddress, category, street, city, region, country, postalCode);
Parameters
unstructuredAddress
String String String

The address of the contact in an unstructured format.

category
ContactFieldCategory ContactFieldCategory ContactFieldCategory

The category the field belongs to.

street
String String String

The street address.

city
String String String

The name of the city for the address.

region
String String String

The name of the region for the address.

country
String String String

The name of the country for the address.

postalCode
String String String

The postal code for the address.

Returns

A location 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