Die Methode FileStream.Close schließt die aktuelle FileStream-Instanz und gibt alle dem FileStream zugeordneten Ressourcen frei. Dies umfasst das Schließen des zugrunde liegenden Dateideskriptors sowie das Löschen des FileStream-Objekts aus dem Arbeitsspeicher. Durch Aufrufen dieser Methode wird der FileStream nicht endgültig freigegeben, sondern kann durch Aufrufen von Dispose oder Finalize von der Garbage Collection eingesammelt werden. Es wird empfohlen, Close oder Dispose immer aufzurufen, um sicherzustellen, dass die Ressourcen korrekt freigegeben werden.
C# (CSharp) FileStream.Close - 60 Beispiele gefunden. Dies sind die am besten bewerteten C# (CSharp) Beispiele für die FileStream.Close, die aus Open Source-Projekten extrahiert wurden. Sie können Beispiele bewerten, um die Qualität der Beispiele zu verbessern.