Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AssertUtils.ArgumentHasText(String, String) Method

Checks the value of the supplied string argument and throws an ArgumentNullException if it is a null reference (Nothing in Visual Basic) or contains only whitespace character(s).

[Visual Basic]
Public Overloads Shared Sub ArgumentHasText( _
   ByVal argument As String, _
   ByVal name As String _
)
[C#]
public static void ArgumentHasText(
   string argument,
   string name
);

Parameters

argument
The string to check.
name
The argument name.

Exceptions

Exception Type Condition
ArgumentNullException If the supplied argument is a null reference (Nothing in Visual Basic) or contains only whitespace character(s).

See Also

AssertUtils Class | Spring.Util Namespace | AssertUtils.ArgumentHasText Overload List