DataServiceStreamResponse.Dispose Method

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

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

Syntax

'Declaration
Public Sub Dispose
'Usage
Dim instance As DataServiceStreamResponse

instance.Dispose()
public void Dispose()
public:
virtual void Dispose() sealed
abstract Dispose : unit -> unit  
override Dispose : unit -> unit
public final function Dispose()

Implements

IDisposable.Dispose()

Remarks

Call 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.

See Also

Reference

DataServiceStreamResponse Class

System.Data.Services.Client Namespace