共用方式為


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>)

設定應該封鎖的數位清單。

適用於

另請參閱