Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IInstanceProvider::ReleaseInstance Method (InstanceContext^, Object^)

 

Called when an InstanceContext object recycles a service object.

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

void ReleaseInstance(
	InstanceContext^ instanceContext,
	Object^ instance
)

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.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft