NAnt SDK Documentation - v0.92

EnvironmentFunctions.GetMachineName Method 

Gets the NetBIOS name of this local computer.

[Visual Basic]
<Function(Name:="get-machine-name")>
Public Shared Function GetMachineName() As String
[C#]
[Function(Name="get-machine-name")]
public static string GetMachineName();

Return Value

The NetBIOS name of this local computer.

Exceptions

Exception Type Condition
InvalidOperationException The name of this computer cannot be obtained.

See Also

EnvironmentFunctions Class | NAnt.Core.Functions Namespace