Stream.Synchronized Method (Stream)
.NET Framework (current version)
Creates a thread-safe (synchronized) wrapper around the specified Stream object.
Assembly: mscorlib (in mscorlib.dll)
<HostProtectionAttribute(SecurityAction.LinkDemand, Synchronization := True)> Public Shared Function Synchronized ( stream As Stream ) As Stream
Parameters
- stream
-
Type:
System.IO.Stream
The Stream object to synchronize.
| Exception | Condition |
|---|---|
| ArgumentNullException | stream is null. |
.NET Framework
Available since 2.0
Available since 2.0
Show: