Share via


CommunicationBlockingAppManager.RequestSetAsActiveBlockingAppAsync Method

Definition

Calls a dialog to set the current app as the default phone communication blocking application.

public:
 static IAsyncOperation<bool> ^ RequestSetAsActiveBlockingAppAsync();
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<bool> RequestSetAsActiveBlockingAppAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<bool> RequestSetAsActiveBlockingAppAsync();
function requestSetAsActiveBlockingAppAsync()
Public Shared Function RequestSetAsActiveBlockingAppAsync () As IAsyncOperation(Of Boolean)

Returns

Indicates whether the app was set as the default phone origin application.

Attributes

Windows requirements

Device family
Windows Mobile Extension SDK (introduced in 10.0.14393.0)
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.ApplicationModel.CommunicationBlocking.CommunicationBlockingContract (introduced in v2.0)

Remarks

In order to use this API, your application needs to be registered as a communication blocking provider. If the application is not appropriately registered, this API will throw an exception. See Windows.ApplicationModel.CommunicationBlocking for more information about how to register as a phone call origin provider.

Applies to