Share via


PhoneCallBlocking Class

Definition

Controls the blocking of phone numbers as they are received.

public ref class PhoneCallBlocking abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.ApplicationModel.Calls.CallsPhoneContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class PhoneCallBlocking final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.ApplicationModel.Calls.CallsPhoneContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class PhoneCallBlocking
Public Class PhoneCallBlocking
Inheritance
Object Platform::Object IInspectable PhoneCallBlocking
Attributes

Windows requirements

Device family
Windows Mobile Extension SDK (introduced in 10.0.10240.0)
API contract
Windows.ApplicationModel.Calls.CallsPhoneContract (introduced in v1.0)
App capabilities
phoneCallHistory phoneCallHistorySystem

Remarks

For more information about how communication blocking works, and how to implement it in your application, see Windows.ApplicationModel.CommunicationBlocking.

Properties

BlockPrivateNumbers

Gets or sets whether the PhoneCallBlocking instance should block private numbers.

BlockUnknownNumbers

Gets or sets whether the PhoneCallBlocking instance should block unknown numbers.

Methods

SetCallBlockingListAsync(IIterable<String>)

Sets the list of numbers that should be blocked.

Applies to

See also