Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
 ReleaseInstance Method
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
IInstanceProvider..::.ReleaseInstance Method

Updated: November 2007

Called when an InstanceContext object recycles a service object.

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

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
)
J#
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.

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

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
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker