Stream::Synchronized Method (Stream^)
.NET Framework (current version)
Creates a thread-safe (synchronized) wrapper around the specified Stream object.
Assembly: mscorlib (in mscorlib.dll)
public: [HostProtectionAttribute(SecurityAction::LinkDemand, Synchronization = true)] static Stream^ Synchronized( Stream^ 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: