CommunicationBlockingAccessManager.ShowBlockNumbersUI Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.