Namespace:
System.ServiceModel.Dispatcher
Assembly:
System.ServiceModel (in System.ServiceModel.dll)
Visual Basic (Declaration)
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
)
Use the ReleaseInstance method to perform some custom resource disposal or other recycling customization when a service recycles a service object.
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.
.NET Framework
Supported in: 3.5, 3.0
Reference