NAnt SDK Documentation - v0.85-nightly-2005-11-09

PkgConfigFunctions.GetVariable Method 

[This is preliminary documentation and subject to change.]

Gets the value of a variable for the specified package.

[Visual Basic]
<Function(Name:="get-variable")>
Public Function GetVariable( _
   ByVal package As String, _
   ByVal name As String _
) As String
[C#]
[Function(Name="get-variable")]
public string GetVariable(
   string package,
   string name
);

Parameters

package
The package for which the variable should be retrieved.
name
The name of the variable.

Return Value

The value of variable name for the specified package.

Remarks

Missing <remarks> documentation for M:NAnt.Core.Functions.PkgConfigFunctions.GetVariable(System.String,System.String)

Exceptions

Exception Type Condition
Win32Exception pkg-config could not be started.
ArgumentException package does not exist.

See Also

PkgConfigFunctions Class | NAnt.Core.Functions Namespace