NAnt SDK Documentation - v0.92

PkgConfigFunctions.IsMaxVersion Method 

Determines whether the given package is at no newer than version version.

[Visual Basic]
<Function(Name:="is-max-version")>
Public Function IsMaxVersion( _
   ByVal package As String, _
   ByVal version As String _
) As Boolean
[C#]
[Function(Name="is-max-version")]
public bool IsMaxVersion(
   string package,
   string version
);

Parameters

package
The package to check.
version
The version the package should maximum have.

Return Value

true if the given package is at no newer than version version; otherwise, false.

Exceptions

Exception Type Condition
Win32Exception pkg-config could not be started.

See Also

PkgConfigFunctions Class | NAnt.Core.Functions Namespace