IHttpModule.Dispose Method
Collapse the table of content
Expand the table of content

WorkflowWebHostingModule.IHttpModule.Dispose Method ()


Releases the resources used by the WorkflowWebHostingModule.

Namespace:   System.Workflow.Runtime.Hosting
Assembly:  System.Workflow.Runtime (in System.Workflow.Runtime.dll)

void IHttpModule.Dispose()

Call M:System.Workflow.Runtime.Hosting.WorkflowWebHostingModule.System.Web.IHttpModule.Dispose when you are finished using the WorkflowWebHostingModule. The M:System.Workflow.Runtime.Hosting.WorkflowWebHostingModule.System.Web.IHttpModule.Dispose method leaves the WorkflowWebHostingModule in an unusable state. After calling M:System.Workflow.Runtime.Hosting.WorkflowWebHostingModule.System.Web.IHttpModule.Dispose, you must release all references to the WorkflowWebHostingModule so the garbage collector can reclaim the memory that the WorkflowWebHostingModule occupied.


Always call Dispose before you release your last reference to the WorkflowWebHostingModule. Otherwise, the resources it is using are not freed until the garbage collector calls the WorkflowWebHostingModule object's Finalize method.

.NET Framework
Available since 3.0
Return to top
© 2016 Microsoft