PhoneCallBlocking 类

定义

控制接收电话号码时阻止电话号码。

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
继承
Object Platform::Object IInspectable PhoneCallBlocking
属性

Windows 要求

设备系列
Windows Mobile Extension SDK (在 10.0.10240.0 中引入)
API contract
Windows.ApplicationModel.Calls.CallsPhoneContract (在 v1.0 中引入)
应用功能
phoneCallHistory phoneCallHistorySystem

注解

有关通信阻止的工作原理以及如何在应用程序中实现它的详细信息,请参阅 Windows.ApplicationModel.CommunicationBlocking

属性

BlockPrivateNumbers

获取或设置 PhoneCallBlocking 实例是否应阻止专用号码。

BlockUnknownNumbers

获取或设置 PhoneCallBlocking 实例是否应阻止未知号码。

方法

SetCallBlockingListAsync(IIterable<String>)

设置应阻止的数字列表。

适用于

另请参阅