PhoneCallBlockedReason 枚举

定义

提供电话呼叫被拒绝的原因。

public enum class PhoneCallBlockedReason
/// [Windows.Foundation.Metadata.ContractVersion(Windows.ApplicationModel.Calls.CallsPhoneContract, 65536)]
enum class PhoneCallBlockedReason
/// [Windows.Foundation.Metadata.ContractVersion(Windows.ApplicationModel.Calls.Background.CallsBackgroundContract, 65536)]
/// [Windows.Foundation.Metadata.PreviousContractVersion("Windows.ApplicationModel.Calls.CallsPhoneContract", 65536, 131072)]
enum class PhoneCallBlockedReason
/// [Windows.Foundation.Metadata.ContractVersion(Windows.ApplicationModel.Calls.Background.CallsBackgroundContract, 65536)]
/// [Windows.Foundation.Metadata.PreviousContractVersion("Windows.ApplicationModel.Calls.CallsPhoneContract", 65536, 196608)]
enum class PhoneCallBlockedReason
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.ApplicationModel.Calls.CallsPhoneContract), 65536)]
public enum PhoneCallBlockedReason
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.ApplicationModel.Calls.Background.CallsBackgroundContract), 65536)]
[Windows.Foundation.Metadata.PreviousContractVersion("Windows.ApplicationModel.Calls.CallsPhoneContract", 65536, 131072)]
public enum PhoneCallBlockedReason
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.ApplicationModel.Calls.Background.CallsBackgroundContract), 65536)]
[Windows.Foundation.Metadata.PreviousContractVersion("Windows.ApplicationModel.Calls.CallsPhoneContract", 65536, 196608)]
public enum PhoneCallBlockedReason
var value = Windows.ApplicationModel.Calls.Background.PhoneCallBlockedReason.inCallBlockingList
Public Enum PhoneCallBlockedReason
继承
PhoneCallBlockedReason
属性

Windows 要求

设备系列
Windows Mobile Extension SDK (在 10.0.10240.0 中引入)
Windows Desktop Extension SDK (在 10.0.10586.0 中引入)
Windows Mobile Extension SDK (在 10.0.10586.0 中引入)
Windows 10, version 1809 (在 10.0.17763.0 中引入)
API contract
Windows.ApplicationModel.Calls.CallsPhoneContract (在 v1.0 中引入)
Windows.ApplicationModel.Calls.Background.CallsBackgroundContract (在 v1.0 中引入)
应用功能
phoneCallHistory phoneCallHistorySystem

字段

名称 说明
InCallBlockingList 0

呼叫被拒绝,因为它在阻止列表中。

PrivateNumber 1

呼叫被拒绝,因为它是专用号码,专用号码被阻止。

UnknownNumber 2

呼叫被拒绝,因为它是一个未知号码和未知号码被阻止。

适用于