Octopus.Client.Model.Versioning.StrictSemanticVersion.Parse C# (CSharp) 메소드

Parse() 공개 정적인 메소드

Parses a SemVer string using strict SemVer rules.
public static Parse ( string value ) : StrictSemanticVersion
value string
리턴 StrictSemanticVersion
        public static StrictSemanticVersion Parse(string value)
        {
            StrictSemanticVersion ver = null;
            if (!TryParse(value, out ver))
            {
                throw new ArgumentException($"'{value}' is not a valid version string", nameof(value));
            }

            return ver;
        }