ReleaseInstance Method

       

Releases a WebClass object.

Syntax

object.ReleaseInstance

The object placeholder represents an object expression that evaluates to an object in the Applies To list.

Remarks

If StateManagement is set to wcRetainInstance, then the WebClass object run-time releases the WebClass object. Developers should call the ReleaseInstance method during the processing of an HTTP request when the WebClass has completed its processing and should be terminated. The final HTTP response typically contains some UI element, for example, a hyperlink, that allows the user to navigate to another URL outside of the WebClass. If there is no such element then the user would need to manually enter another URL in the browser in order to navigate elsewhere. The response should not contain URLs to other WebItems in the WebClass, for example, created using URLFor. If such a URL is in the response and the user navigates to it, a new instance of the WebClass will be created.