Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ResultFactoryRegistry.RegisterResultMode Method

Registers a IResultFactory for the specified resultMode.

[Visual Basic]
Public Shared Sub RegisterResultMode( _
   ByVal resultMode As String, _
   ByVal resultFactory As IResultFactory _
)
[C#]
public static IResultFactory RegisterResultMode(
   string resultMode,
   IResultFactory resultFactory
);

Parameters

resultMode
the resultMode. Must not be null.
resultFactory
the factory respponsible for handling resultMode results. Must not be null.

Return Value

the factory previously registered for the specified resultMode, if any.

Remarks

See ResultFactoryRegistry overview for more information.

See Also

ResultFactoryRegistry Class | Spring.Web.Support Namespace