Udostępnij za pośrednictwem


ContactFieldFactory.CreateLocation Method

Definition

Overloads

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.

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, 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)

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.

public:
 virtual ContactLocationField ^ CreateLocation(Platform::String ^ unstructuredAddress) = CreateLocation;
/// [Windows.Foundation.Metadata.Overload("CreateLocation_Default")]
ContactLocationField CreateLocation(winrt::hstring const& unstructuredAddress);
[Windows.Foundation.Metadata.Overload("CreateLocation_Default")]
public ContactLocationField CreateLocation(string unstructuredAddress);
function createLocation(unstructuredAddress)
Public Function CreateLocation (unstructuredAddress As String) As ContactLocationField

Parameters

unstructuredAddress
String

Platform::String

winrt::hstring

The address of the contact in an unstructured format.

Returns

Contains a location field that you can add to a Contact object.

Implements

M:Windows.ApplicationModel.Contacts.IContactLocationFieldFactory.CreateLocation(System.String) M:Windows.ApplicationModel.Contacts.IContactLocationFieldFactory.CreateLocation(Platform::String) M:Windows.ApplicationModel.Contacts.IContactLocationFieldFactory.CreateLocation(winrt::hstring)
Attributes

Windows requirements

App capabilities
contactsSystem

See also

Applies to

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.

public:
 virtual ContactLocationField ^ CreateLocation(Platform::String ^ unstructuredAddress, ContactFieldCategory category) = CreateLocation;
/// [Windows.Foundation.Metadata.Overload("CreateLocation_Category")]
ContactLocationField CreateLocation(winrt::hstring const& unstructuredAddress, ContactFieldCategory const& category);
[Windows.Foundation.Metadata.Overload("CreateLocation_Category")]
public ContactLocationField CreateLocation(string unstructuredAddress, ContactFieldCategory category);
function createLocation(unstructuredAddress, category)
Public Function CreateLocation (unstructuredAddress As String, category As ContactFieldCategory) As ContactLocationField

Parameters

unstructuredAddress
String

Platform::String

winrt::hstring

The address of the contact in an unstructured format.

category
ContactFieldCategory

The category the field belongs to.

Returns

Contains a location field that you can add to a Contact object.

Implements

M:Windows.ApplicationModel.Contacts.IContactLocationFieldFactory.CreateLocation(System.String,Windows.ApplicationModel.Contacts.ContactFieldCategory) M:Windows.ApplicationModel.Contacts.IContactLocationFieldFactory.CreateLocation(Platform::String,Windows.ApplicationModel.Contacts.ContactFieldCategory) M:Windows.ApplicationModel.Contacts.IContactLocationFieldFactory.CreateLocation(winrt::hstring,Windows.ApplicationModel.Contacts.ContactFieldCategory)
Attributes

Windows requirements

App capabilities
contactsSystem

See also

Applies to

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.

public:
 virtual ContactLocationField ^ CreateLocation(Platform::String ^ unstructuredAddress, ContactFieldCategory category, Platform::String ^ street, Platform::String ^ city, Platform::String ^ region, Platform::String ^ country, Platform::String ^ postalCode) = CreateLocation;
/// [Windows.Foundation.Metadata.Overload("CreateLocation_All")]
ContactLocationField CreateLocation(winrt::hstring const& unstructuredAddress, ContactFieldCategory const& category, winrt::hstring const& street, winrt::hstring const& city, winrt::hstring const& region, winrt::hstring const& country, winrt::hstring const& postalCode);
[Windows.Foundation.Metadata.Overload("CreateLocation_All")]
public ContactLocationField CreateLocation(string unstructuredAddress, ContactFieldCategory category, string street, string city, string region, string country, string postalCode);
function createLocation(unstructuredAddress, category, street, city, region, country, 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

Parameters

unstructuredAddress
String

Platform::String

winrt::hstring

The address of the contact in an unstructured format.

category
ContactFieldCategory

The category the field belongs to.

street
String

Platform::String

winrt::hstring

The street address for the address.

city
String

Platform::String

winrt::hstring

The name of the city for the address.

region
String

Platform::String

winrt::hstring

The name of the region for the address.

country
String

Platform::String

winrt::hstring

The name of the country for the address.

postalCode
String

Platform::String

winrt::hstring

The postal code for the address.

Returns

Contains a location field that you can add to a Contact object.

Implements

M:Windows.ApplicationModel.Contacts.IContactLocationFieldFactory.CreateLocation(System.String,Windows.ApplicationModel.Contacts.ContactFieldCategory,System.String,System.String,System.String,System.String,System.String) M:Windows.ApplicationModel.Contacts.IContactLocationFieldFactory.CreateLocation(Platform::String,Windows.ApplicationModel.Contacts.ContactFieldCategory,Platform::String,Platform::String,Platform::String,Platform::String,Platform::String) M:Windows.ApplicationModel.Contacts.IContactLocationFieldFactory.CreateLocation(winrt::hstring,Windows.ApplicationModel.Contacts.ContactFieldCategory,winrt::hstring,winrt::hstring,winrt::hstring,winrt::hstring,winrt::hstring)
Attributes

Windows requirements

App capabilities
contactsSystem

See also

Applies to