Share via


CommunicationBlockingAccessManager.ShowBlockNumbersUI Method

Definition

Launches a UI to block numbers if there as an active blocking app.

public:
 static bool ShowBlockNumbersUI(IIterable<Platform::String ^> ^ phoneNumbers);
 static bool ShowBlockNumbersUI(IIterable<winrt::hstring> const& phoneNumbers);
public static bool ShowBlockNumbersUI(IEnumerable<string> phoneNumbers);
function showBlockNumbersUI(phoneNumbers)
Public Shared Function ShowBlockNumbersUI (phoneNumbers As IEnumerable(Of String)) As Boolean

Parameters

phoneNumbers

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

The list of numbers to add to the block list.

Returns

Boolean

bool

Returns true if the active blocking app is launched, otherwise returns false.

Remarks

This method creates and displays a user interface to enable the user to block the provided phoneNumbers.

Applies to