Soenneker.Validators.Phone.Possible
4.0.270
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Soenneker.Validators.Phone.Possible --version 4.0.270
NuGet\Install-Package Soenneker.Validators.Phone.Possible -Version 4.0.270
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Validators.Phone.Possible" Version="4.0.270" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Validators.Phone.Possible" Version="4.0.270" />
<PackageReference Include="Soenneker.Validators.Phone.Possible" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Validators.Phone.Possible --version 4.0.270
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Validators.Phone.Possible, 4.0.270"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Validators.Phone.Possible@4.0.270
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Validators.Phone.Possible&version=4.0.270
#tool nuget:?package=Soenneker.Validators.Phone.Possible&version=4.0.270
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Soenneker.Validators.Phone.Possible
Validates whether a given phone number is possible and valid for a specific region.
Install
dotnet add package Soenneker.Validators.Phone.Possible
Quick start
using Soenneker.Validators.Phone.Possible.Registrars;
using Microsoft.Extensions.DependencyInjection;
var services = new ServiceCollection();
var result = services.AddPhonePossibleValidatorAsSingleton();
Adds IPhonePossibleValidator as a singleton service.
What you get
IPhonePossibleValidator— Validates whether a given phone number is possible and valid for a specific region.PhonePossibleValidatorRegistrar— A validation module checking if a given phone number is possible.
API at a glance
| API | What it does | Result / important behavior |
|---|---|---|
IPhonePossibleValidator.Parse(number, defaultRegion, cancellationToken) |
Parses a raw phone number string into a PhoneNumber object. |
A PhoneNumber object if parsing succeeds; otherwise, null. |
PhonePossibleValidatorRegistrar.AddPhonePossibleValidatorAsSingleton(services) |
Adds IPhonePossibleValidator as a singleton service. |
The same service collection, so additional registrations can be chained. |
PhonePossibleValidatorRegistrar.AddPhonePossibleValidatorAsScoped(services) |
Adds IPhonePossibleValidator as a scoped service. |
The same service collection, so additional registrations can be chained. |
Practical notes
- Cancellation stops pending work; it does not undo work that has already completed.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Soenneker.Utils.Libphonenumber (>= 4.0.217)
- Soenneker.Validators.Validator (>= 4.0.736)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.278 | 0 | 8/31/2026 |
| 4.0.277 | 0 | 8/31/2026 |
| 4.0.276 | 0 | 8/31/2026 |
| 4.0.275 | 0 | 8/30/2026 |
| 4.0.274 | 23 | 8/30/2026 |
| 4.0.273 | 56 | 8/30/2026 |
| 4.0.272 | 43 | 8/30/2026 |
| 4.0.271 | 41 | 8/30/2026 |
| 4.0.270 | 38 | 8/30/2026 |
| 4.0.269 | 36 | 8/29/2026 |
| 4.0.268 | 43 | 8/29/2026 |
| 4.0.267 | 47 | 8/29/2026 |
| 4.0.266 | 42 | 8/29/2026 |
| 4.0.265 | 40 | 8/29/2026 |
| 4.0.264 | 86 | 8/26/2026 |
| 4.0.263 | 320 | 8/15/2026 |
| 4.0.262 | 94 | 8/12/2026 |
| 4.0.261 | 94 | 8/11/2026 |
| 4.0.260 | 101 | 8/9/2026 |
| 4.0.259 | 89 | 8/8/2026 |
Loading failed
Update dependency Soenneker.Validators.Validator to 4.0.735 (#810)