PhoneCallBlocking
PhoneCallBlocking
PhoneCallBlocking
PhoneCallBlocking
Class
Definition
Controls the blocking of phone numbers as they are received.
public : static class PhoneCallBlockingpublic static class PhoneCallBlockingPublic Static Class PhoneCallBlocking// You can use this class in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows Mobile Extension SDK (introduced v10.0.10240.0)
|
| API contract |
Windows.ApplicationModel.Calls.CallsPhoneContract (introduced v1)
|
Remarks
For more information about how communication blocking works, and how to implement it in your application, see Windows.ApplicationModel.CommunicationBlocking.
Properties
BlockPrivateNumbers BlockPrivateNumbers BlockPrivateNumbers BlockPrivateNumbers
Gets or sets whether the PhoneCallBlocking instance should block private numbers.
public : static PlatForm::Boolean BlockPrivateNumbers { get; set; }public static bool BlockPrivateNumbers { get; set; }Public Static ReadWrite Property BlockPrivateNumbers As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
True if the PhoneCallBlocking instance should block private numbers, false otherwise.
BlockUnknownNumbers BlockUnknownNumbers BlockUnknownNumbers BlockUnknownNumbers
Gets or sets whether the PhoneCallBlocking instance should block unknown numbers.
public : static PlatForm::Boolean BlockUnknownNumbers { get; set; }public static bool BlockUnknownNumbers { get; set; }Public Static ReadWrite Property BlockUnknownNumbers As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
True if the PhoneCallBlocking instance should block unknown numbers, false otherwise.
Methods
SetCallBlockingListAsync(IIterable)
SetCallBlockingListAsync(IIterable)
SetCallBlockingListAsync(IIterable)
SetCallBlockingListAsync(IIterable)
Sets the list of numbers that should be blocked.
public : static IAsyncOperation<PlatForm::Boolean> SetCallBlockingListAsync(IIterable<PlatForm::String> phoneNumberList)public static IAsyncOperation<bool> SetCallBlockingListAsync(IEnumerable<String> phoneNumberList)Public Static Function SetCallBlockingListAsync(phoneNumberList As IEnumerable<String>) As IAsyncOperation( Of bool )// You can use this method in JavaScript.
Parameters
- phoneNumberList
- IIterable<PlatForm::String> IEnumerable<String> IEnumerable<String> IEnumerable<String>
A list of numbers that should be blocked.
Returns
IAsyncOperation<PlatForm::Boolean>
IAsyncOperation<bool>
IAsyncOperation<bool>
IAsyncOperation<bool>
True if the operation was successful, otherwise false.