In This Topic
Creates a wrapper around the specified stream that prevents the Dispose method from being called.
Syntax
'Declaration
Public Shared Function MakeUndisposable( _
ByVal As Stream _
) As Stream
public static Stream MakeUndisposable(
Stream
)
Parameters
- stream
- The stream to wrap.
Return Value
A
System.IO.Stream that does not call Dispose.
See Also