PhoneCallOriginManager.RequestSetAsActiveCallOriginAppAsync 方法

定义

调用对话框,将当前应用设置为默认电话源应用。

public:
 static IAsyncOperation<bool> ^ RequestSetAsActiveCallOriginAppAsync();
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<bool> RequestSetAsActiveCallOriginAppAsync();
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("PhoneCallOriginManager is deprecated and might not work for all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 458752, "Windows.ApplicationModel.Calls.CallsPhoneContract")]
 static IAsyncOperation<bool> RequestSetAsActiveCallOriginAppAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<bool> RequestSetAsActiveCallOriginAppAsync();
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("PhoneCallOriginManager is deprecated and might not work for all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 458752, "Windows.ApplicationModel.Calls.CallsPhoneContract")]
public static IAsyncOperation<bool> RequestSetAsActiveCallOriginAppAsync();
function requestSetAsActiveCallOriginAppAsync()
Public Shared Function RequestSetAsActiveCallOriginAppAsync () As IAsyncOperation(Of Boolean)

返回

指示应用是否已设置为默认电话源应用程序。

属性

Windows 要求

设备系列
Windows Mobile Extension SDK (在 10.0.14393.0 中引入)
API contract
Windows.ApplicationModel.Calls.CallsPhoneContract (在 v3.0 中引入)
应用功能
phoneCallHistory phoneCallHistorySystem

注解

若要使用此 API,需要将应用程序注册为电话呼叫源提供商。 如果未正确注册应用程序,此 API 将引发异常。 有关如何注册为电话呼叫源提供商的详细信息,请参阅 Windows.ApplicationModel.Calls.Provider

适用于