net11.0
namespace System.CommandLine
{
    public static class ArgumentValidation
    {
        public static Argument<T>! AcceptOnlyFromAmong<T>(this Argument<T>! argument, StringComparer! comparer, params string![]! values);
    }
}
.NET
10.011.0
Information specific to net11.0
Assembly

System.CommandLine , Version=3.0.0.0, PublicKeyToken=31bf3856ad364e35

Referencing

Your project needs a package reference to System.CommandLine.

Package System.CommandLine (3.0.0-preview.4.26230.115) net10.0
Preview This API is contained in a prerelease package.
Platform Restrictions

This API is supported on all platforms.

  • Built-in API
  • Package-provided API