NAnt SDK Documentation - v0.92 |

# PkgConfigFunctions.GetVariable Method

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.

#### Exceptions

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

#### See Also

PkgConfigFunctions Class | NAnt.Core.Functions Namespace