PlaceInfo.CreateFromAddress Method

Definition

Overloads

CreateFromAddress(String)

Creates a PlaceInfo instance by using an address.

CreateFromAddress(String, String)

Creates a PlaceInfo instance by using an address and a display name.

CreateFromAddress(String)

Creates a PlaceInfo instance by using an address.

public:
 static PlaceInfo ^ CreateFromAddress(Platform::String ^ displayAddress);
/// [Windows.Foundation.Metadata.Overload("CreateFromAddress")]
 static PlaceInfo CreateFromAddress(winrt::hstring const & displayAddress);
[Windows.Foundation.Metadata.Overload("CreateFromAddress")]
public static PlaceInfo CreateFromAddress(string displayAddress);
function createFromAddress(displayAddress)
Public Shared Function CreateFromAddress (displayAddress As String) As PlaceInfo

Parameters

displayAddress
String

The address of the location that you want to appear in the placecard.

Returns

PlaceInfo
Attributes

Windows 10 requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Applies to

CreateFromAddress(String, String)

Creates a PlaceInfo instance by using an address and a display name.

public:
 static PlaceInfo ^ CreateFromAddress(Platform::String ^ displayAddress, Platform::String ^ displayName);
/// [Windows.Foundation.Metadata.Overload("CreateFromAddressWithName")]
 static PlaceInfo CreateFromAddress(winrt::hstring const & displayAddress, winrt::hstring const & displayName);
[Windows.Foundation.Metadata.Overload("CreateFromAddressWithName")]
public static PlaceInfo CreateFromAddress(string displayAddress, string displayName);
function createFromAddress(displayAddress, displayName)
Public Shared Function CreateFromAddress (displayAddress As String, displayName As String) As PlaceInfo

Parameters

displayAddress
String

The address of the location that you want to appear in the placecard.

displayName
String

The name that you want to appear as a label in the placecard.

Returns

PlaceInfo
Attributes

Windows 10 requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Applies to