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

StringFunctions.GetLength Method 

[This is preliminary documentation and subject to change.]

Returns the length of the specified string.

[Visual Basic]
<Function(Name:="get-length")>
Public Shared Function GetLength( _
   ByVal s As String _
) As Integer
[C#]
[Function(Name="get-length")]
public static int GetLength(
   string s
);

Parameters

s
input string

Return Value

The string's length.

Remarks

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

Example

string::get-length('foo') ==> 3
string::get-length('') ==> 0

See Also

StringFunctions Class | NAnt.Core.Functions Namespace