PkgConfigFunctions.

GetVariable(string, string) Method

Summary

Gets the value of a variable for the specified package.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions
Containing Type
PkgConfigFunctions

Syntax

[Function("get-variable")]
public string GetVariable(string package, string name)

Attributes

Type Description
FunctionAttribute Indicates that the method should be exposed as a function in NAnt build files.

Parameters

Name Type Description
package string The package for which the variable should be retrieved.
name string The name of the variable.

Return Value

Type Description
string The value of variable name for the specified package.