共用方式為


LocalLocation.PhoneNumber 屬性

定義

取得商務或地點的電話號碼。

注意

此 API 不適用於所有 Windows 應用程式。 除非您的開發人員帳戶是由 Microsoft 特別布建,否則呼叫此 API 會在運行時間失敗。 如需 Windows.Services.Maps.LocalSearch 命名空間的詳細資訊,請與您的Microsoft帳戶小組代表合作。

public:
 property Platform::String ^ PhoneNumber { Platform::String ^ get(); };
winrt::hstring PhoneNumber();
public string PhoneNumber { get; }
var string = localLocation.phoneNumber;
Public ReadOnly Property PhoneNumber As String

屬性值

String

Platform::String

winrt::hstring

商務或地點的電話號碼。

適用於