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

FileFunctions.GetLength Method 

[This is preliminary documentation and subject to change.]

Gets the length of the file.

[Visual Basic]
<Function(Name:="get-length")>
Public Function GetLength( _
   ByVal file As String _
) As Long
[C#]
[Function(Name="get-length")]
public long GetLength(
   string file
);

Parameters

file
filename

Return Value

Length in bytes, of the file named file.

Remarks

Missing <remarks> documentation for M:NAnt.Core.Functions.FileFunctions.GetLength(System.String)

Exceptions

Exception Type Condition
FileNotFoundException The file specified cannot be found.

See Also

FileFunctions Class | NAnt.Core.Functions Namespace