次の方法で共有


DataServiceStreamResponse.Dispose Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Releases all resources used by the current instance of the DataServiceStreamResponse class.

Namespace:  System.Data.Services.Client
Assembly:  System.Data.Services.Client (in System.Data.Services.Client.dll)

Syntax

'Declaration
Public Sub Dispose
public void Dispose()

Implements

IDisposable.Dispose()

Remarks

Calls the Dispose method when you have finished using the DataServiceStreamResponse. This releases resources held by the object. You should always do this to release the resources held by the DataServiceStreamResponse; otherwise, the consumed resources will not be released until after the garbage collector calls the Finalize method on the DataServiceStreamResponse object.

After the Dispose method is called and all references to the DataServiceStreamResponse are released, the memory used can be reclaimed by garbage collection.

You cannot use DataServiceStreamResponse after calling the Dispose method.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.