Updated: November 2007
Called when an InstanceContext object recycles a service object.
Sub ReleaseInstance ( _ instanceContext As InstanceContext, _ instance As Object _ )
Dim instance As IInstanceProvider Dim instanceContext As InstanceContext Dim instance As Object instance.ReleaseInstance(instanceContext, _ instance)
void ReleaseInstance( InstanceContext instanceContext, Object instance )
void ReleaseInstance( InstanceContext^ instanceContext, Object^ instance )
function ReleaseInstance( instanceContext : InstanceContext, instance : Object )
The service's instance context.
The service object to be recycled.
Use the ReleaseInstance method to perform some custom resource disposal or other recycling customization when a service recycles a service object.
Windows Vista, Windows XP SP2, Windows Server 2003