TextReader.Synchronized(TextReader) Methode
Definition
Erstellt einen threadsicheren Wrapper um den angegebenen TextReader
.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
Parameter
- reader
- TextReader
Die TextReader
, die synchronisiert werden soll.The TextReader
to synchronize.
Gibt zurück
Ein threadsicherer TextReader.A thread-safe TextReader.
Ausnahmen
reader
ist null
.reader
is null
.
Hinweise
Die aktuelle Methode gibt eine Klasse zurück, die die angegebene TextReader -Instanz umschließt und den Zugriff durch mehrere Threads einschränkt.The current method returns a class that wraps around the specified TextReader instance and restricts access to it by multiple threads. Alle Lesevorgänge aus dem zurückgegebenen Wrapper sind Thread sicher.All reads from the returned wrapper will be thread safe.