SemanticVersionParse Method |
Parses a string with a semantic version and returns the SemanticVersion.
Exception if the string does not contain a valid semantic version.
Namespace: semver.toolsAssembly: semver.tools (in semver.tools.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static SemanticVersion Parse(
string s
)
Public Shared Function Parse (
s As String
) As SemanticVersion
public:
static SemanticVersion^ Parse(
String^ s
)
static member Parse :
s : string -> SemanticVersion
Parameters
- s
- Type: SystemString
Return Value
Type:
SemanticVersion
ExceptionsException | Condition |
---|
ArgumentException |
Throws an exception if the string does not contain a valid semantic version, or if the input string is null.
|
See Also