[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Releases all resources used by the Stream.
Assembly: mscorlib (in mscorlib.dll)
Public Sub Dispose
public void Dispose()
This method disposes the stream, by writing any changes to the backing store and closing the stream to release resources.
Calling Dispose allows the resources used by the Stream to be reallocated for other purposes.
Notes to Implementers
Note that because of backward compatibility requirements, this method's implementation differs from the recommended guidance for the Dispose pattern. This method calls Close, which then calls Stream..::.Dispose(Boolean).
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0