TextReader.Synchronized(TextReader) TextReader.Synchronized(TextReader) TextReader.Synchronized(TextReader) TextReader.Synchronized(TextReader) Method

Definizione

Crea un wrapper thread-safe per l'oggetto TextReader specificato.Creates a thread-safe wrapper around the specified TextReader.

public:
 static System::IO::TextReader ^ Synchronized(System::IO::TextReader ^ reader);
public static System.IO.TextReader Synchronized (System.IO.TextReader reader);
static member Synchronized : System.IO.TextReader -> System.IO.TextReader
Public Shared Function Synchronized (reader As TextReader) As TextReader

Parametri

reader
TextReader TextReader TextReader TextReader

Oggetto TextReader da sincronizzare.The TextReader to synchronize.

Restituisce

Oggetto TextReader thread-safe.A thread-safe TextReader.

Eccezioni

Commenti

Il metodo corrente terminerà una classe che esegue il wrapping specificato TextReader dell'istanza e ne limita l'accesso da più thread.The current method returns a class that wraps around the specified TextReader instance and restricts access to it by multiple threads. Tutte le letture dal wrapper restituito sarà thread-safe.All reads from the returned wrapper will be thread safe.

Si applica a

Vedi anche