.NET Framework Class Library
IInstanceProvider..::.ReleaseInstance Method

Called when an InstanceContext object recycles a service object.

Namespace:  System.ServiceModel.Dispatcher
Assembly:  System.ServiceModel (in System.ServiceModel.dll)
Syntax

Visual Basic (Declaration)
Sub ReleaseInstance ( _
    instanceContext As InstanceContext, _
    instance As Object _
)
Visual Basic (Usage)
Dim instance As IInstanceProvider
Dim instanceContext As InstanceContext
Dim instance As Object

instance.ReleaseInstance(instanceContext, _
    instance)
C#
void ReleaseInstance(
    InstanceContext instanceContext,
    Object instance
)
Visual C++
void ReleaseInstance(
    InstanceContext^ instanceContext, 
    Object^ instance
)
JScript
function ReleaseInstance(
    instanceContext : InstanceContext, 
    instance : Object
)

Parameters

instanceContext
Type: System.ServiceModel..::.InstanceContext
The service's instance context.
instance
Type: System..::.Object
The service object to be recycled.
Remarks

Use the ReleaseInstance method to perform some custom resource disposal or other recycling customization when a service recycles a service object.

.NET Framework Security

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information

.NET Framework

Supported in: 3.5, 3.0
See Also

Reference

Tags :


Page view tracker