DataServiceStreamResponse.Dispose Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Releases all resources used by the current instance of the DataServiceStreamResponse class.
public:
virtual void Dispose();
public void Dispose ();
abstract member Dispose : unit -> unit
override this.Dispose : unit -> unit
Public Sub Dispose ()
Implements
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.