Dela via


PhoneCallBlockedReason Enum

Definition

Provides the reason why a phone call was rejected.

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
Inheritance
PhoneCallBlockedReason
Attributes

Windows requirements

Device family
Windows Mobile Extension SDK (introduced in 10.0.10240.0)
Windows Desktop Extension SDK (introduced in 10.0.10586.0)
Windows Mobile Extension SDK (introduced in 10.0.10586.0)
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.ApplicationModel.Calls.CallsPhoneContract (introduced in v1.0)
Windows.ApplicationModel.Calls.Background.CallsBackgroundContract (introduced in v1.0)
App capabilities
phoneCallHistory phoneCallHistorySystem

Fields

Name Value Description
InCallBlockingList 0

The call was rejected because it was in the blocking list.

PrivateNumber 1

The call was rejected because it was a private number and private numbers are blocked.

UnknownNumber 2

The call was rejected because it was an unknown number and unknown numbers are blocked.

Applies to