Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

Result Constructor

Creates a new instance of the Result class.

[Visual Basic]
Public Overloads Sub New( _
   ByVal resultMode As String, _
   ByVal resultText As String _
)
[C#]
Result(
   string resultMode,
   string resultText
);

Parameters

resultMode
The desired result mode. May be null to use default mode.
resultText
The result descriptor (without resultMode prefix!).

Remarks

See both the class documentation (Result) and the reference documentation for the Spring.Web library for a discussion and examples of what values the supplied result can have.

Exceptions

Exception Type Condition
ArgumentNullException If the supplied resultText is a null reference (Nothing in Visual Basic) or contains only whitespace character(s).
ArgumentOutOfRangeException if the result mode is unknown.

See Also

Result Class | Spring.Web.Support Namespace | Result Constructor Overload List