SemanticVersionTryParse Method |
Attempts to parse a string with a semantic version.
Namespace: semver.toolsAssembly: semver.tools (in semver.tools.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static bool TryParse(
string s,
out SemanticVersion result
)
Public Shared Function TryParse (
s As String,
<OutAttribute> ByRef result As SemanticVersion
) As Boolean
public:
static bool TryParse(
String^ s,
[OutAttribute] SemanticVersion^% result
)
static member TryParse :
s : string *
result : SemanticVersion byref -> bool
Parameters
- s
- Type: SystemString
String to parse.
- result
- Type: semver.toolsSemanticVersion
The SemanticVersion, or null if the input string does not contain a valid semantic version.
Return Value
Type:
Boolean
True if the input string contains a valid semantic version. False otherwise.
See Also