Stream.Synchronized(Stream) Metodo
Definizione
public:
static System::IO::Stream ^ Synchronized(System::IO::Stream ^ stream);
public static System.IO.Stream Synchronized (System.IO.Stream stream);
static member Synchronized : System.IO.Stream -> System.IO.Stream
Public Shared Function Synchronized (stream As Stream) As Stream
Parametri
Restituisce
Oggetto Stream thread-safe.A thread-safe Stream object.
Eccezioni
stream
è null
.stream
is null
.
Commenti
Questo metodo restituisce una classe che esegue il wrapping dell' Stream oggetto specificato e limita l'accesso a tale oggetto da più thread.This method returns a class that wraps the specified Stream object and restricts access to it from multiple threads. Tutti gli accessi all' Stream oggetto saranno thread-safe.All access to the Stream object will be thread safe.