Jaa


PhoneNumberParseResult Enum

Definition

Describes the results of trying to parse a string into a phone number.

public enum class PhoneNumberParseResult
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
enum class PhoneNumberParseResult
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
public enum PhoneNumberParseResult
var value = Windows.Globalization.PhoneNumberFormatting.PhoneNumberParseResult.valid
Public Enum PhoneNumberParseResult
Inheritance
PhoneNumberParseResult
Attributes

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

Fields

Name Value Description
Valid 0

The prospective number has been parsed, and is valid.

NotANumber 1

The prospective number is not valid.

InvalidCountryCode 2

The prospective number has an invalid country code, and is not valid.

TooShort 3

The prospective number is too short, and is not valid.

TooLong 4

The prospective number is too long, and is not valid.

Applies to