Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

VirtualEnvironment Members

VirtualEnvironment overview

Public Static (Shared) Properties

ApplicationVirtualPath The virtual (rooted) path of the current Application containing a leading '/' as well as a trailing '/'
CurrentExecutionFilePath The virtual (rooted) path of the currently executing script
CurrentVirtualFilePath The virtual (rooted) path of the current Request without trailing PathInfo
CurrentVirtualPath The virtual (rooted) path of the current Request including PathInfo
CurrentVirtualPathAndQuery The virtual (rooted) path of the current Request including PathInfo
IsInitialized Is this VirtualEnviroment ready to accept handler registrations for EndRequest and EndSession events ?
QueryString The query parameters
RequestParams Returns the current Request's parameter dictionary (Params)
RequestVariables Returns the current Request's variable dictionary (Items)

Public Static (Shared) Methods

CreateInstanceFromVirtualPath Returns an instance of the specified file.
GetCompiledType Returns an the compiled type of the specified file.
MapPath Maps a virtual path to it's physical location
RaiseEndRequest Receives EndRequest-event from an HttpApplication instance and dispatches it to all handlers registered with this module.
RaiseEndSession Receives the EndSession-event and dispatches it to all handlers registered with this module.
RewritePath Rewrites the CurrentVirtualPath, thus also affecting MapPath
SetInitialized Signals, that VirtualEnvironment is ready to accept handler registrations for EndRequest and EndSession events
SetInstance Replaces the current enviroment implementation.

Public Static (Shared) Events

EndRequest Register with this event to receive any EndRequest event occuring in the current AppDomain.
EndSession Register with this event to receive any EndSession event occuring in the current AppDomain

Public Instance Constructors

VirtualEnvironment Constructor Initializes a new instance of the VirtualEnvironment class.

Public Instance Methods

Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

VirtualEnvironment Class | Spring.Util Namespace