共用方式為


PhoneLine.DialWithResultAsync(String, String) 方法

定義

以異步方式在線路上撥打電話。

public:
 virtual IAsyncOperation<PhoneLineDialResult ^> ^ DialWithResultAsync(Platform::String ^ number, Platform::String ^ displayName) = DialWithResultAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<PhoneLineDialResult> DialWithResultAsync(winrt::hstring const& number, winrt::hstring const& displayName);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<PhoneLineDialResult> DialWithResultAsync(string number, string displayName);
function dialWithResultAsync(number, displayName)
Public Function DialWithResultAsync (number As String, displayName As String) As IAsyncOperation(Of PhoneLineDialResult)

參數

number
String

Platform::String

winrt::hstring

要呼叫的數位。

displayName
String

Platform::String

winrt::hstring

被呼叫端的顯示名稱。

傳回

異步操作物件,其完成時會包含 PhoneLineDialResult 物件,代表電話撥號狀態 (結果) 。

屬性

Windows 需求

裝置系列
Windows 10, version 2104 (已於 10.0.20348.0 引進)
API contract
Windows.ApplicationModel.Calls.CallsPhoneContract (已於 v6.0 引進)
應用程式功能
phoneCall

適用於