Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

VirtualEnvironment.SetInstance Method

Replaces the current enviroment implementation.

[Visual Basic]
Public Shared Sub SetInstance( _
   ByVal newEnvironment As IVirtualEnvironment _
)
[C#]
public static IVirtualEnvironment SetInstance(
   IVirtualEnvironment newEnvironment
);

Parameters

newEnvironment
the new environment implementation to be used

Return Value

the previously set environment instance

See Also

VirtualEnvironment Class | Spring.Util Namespace