VersionSpecTryParseNuGet Method |
Attempts to parse a string with a version spec in NuGet format.
See http://docs.nuget.org/docs/reference/versioning
Namespace: semver.toolsAssembly: semver.tools (in semver.tools.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static bool TryParseNuGet(
string s,
out IVersionSpec result
)
Public Shared Function TryParseNuGet (
s As String,
<OutAttribute> ByRef result As IVersionSpec
) As Boolean
public:
static bool TryParseNuGet(
String^ s,
[OutAttribute] IVersionSpec^% result
)
static member TryParseNuGet :
s : string *
result : IVersionSpec byref -> bool
Parameters
- s
- Type: SystemString
String to parse.
- result
- Type: semver.toolsIVersionSpec
The version spec, or null if the input string does not contain a valid NuGet version spec.
Return Value
Type:
Boolean
True if the input string contains a valid version spec. False otherwise.
See Also