System.IO Przestrzeń nazw
Zawiera typy, które umożliwiają odczytywanie i zapisywanie plików oraz strumieni danych oraz typy zapewniające podstawową obsługę plików i katalogów. Contains types that allow reading and writing to files and data streams, and types that provide basic file and directory support.
Klasy
BinaryReader |
Odczytuje pierwotne typy danych jako wartości binarne w określonym kodowaniu.Reads primitive data types as binary values in a specific encoding. |
BinaryWriter |
Zapisuje typy pierwotne w postaci binarnej do strumienia i obsługuje pisanie ciągów w określonym kodowaniu.Writes primitive types in binary to a stream and supports writing strings in a specific encoding. |
BufferedStream |
Dodaje warstwę buforowania do operacji odczytu i zapisu w innym strumieniu.Adds a buffering layer to read and write operations on another stream. Klasa ta nie może być dziedziczona.This class cannot be inherited. |
Directory |
Udostępnia statyczne metody tworzenia, przechodzenia i wyliczania katalogów i podkatalogów.Exposes static methods for creating, moving, and enumerating through directories and subdirectories. Klasa ta nie może być dziedziczona.This class cannot be inherited. |
DirectoryInfo |
Udostępnia metody instancji służące do tworzenia, przechodzenia i wyliczania katalogów i podkatalogów.Exposes instance methods for creating, moving, and enumerating through directories and subdirectories. Klasa ta nie może być dziedziczona.This class cannot be inherited. |
DirectoryNotFoundException |
Wyjątek, który jest generowany, gdy nie można znaleźć części pliku lub katalogu.The exception that is thrown when part of a file or directory cannot be found. |
DriveInfo |
Zapewnia dostęp do informacji na dysku.Provides access to information on a drive. |
DriveNotFoundException |
Wyjątek, który jest generowany podczas próby uzyskania dostępu do dysku lub udziału, który jest niedostępny.The exception that is thrown when trying to access a drive or share that is not available. |
EndOfStreamException |
Wyjątek, który jest generowany podczas próby odczytu poza końcem strumienia.The exception that is thrown when reading is attempted past the end of a stream. |
EnumerationOptions |
Udostępnia opcje wyliczania plików i katalogów.Provides file and directory enumeration options. |
ErrorEventArgs |
Udostępnia dane dla zdarzenia Error.Provides data for the Error event. |
File |
Zapewnia statyczne metody tworzenia, kopiowania, usuwania, przechodzenia i otwierania pojedynczego pliku oraz ułatwia tworzenie FileStream obiektów.Provides static methods for the creation, copying, deletion, moving, and opening of a single file, and aids in the creation of FileStream objects. |
FileFormatException |
Wyjątek, który jest generowany, gdy plik wejściowy lub strumień danych, który powinien być zgodny z konkretną specyfikacją formatu pliku, jest nieprawidłowo sformułowany.The exception that is thrown when an input file or a data stream that is supposed to conform to a certain file format specification is malformed. |
FileInfo |
Udostępnia właściwości i metody wystąpień do tworzenia, kopiowania, usuwania, przechodzenia i otwierania plików oraz ułatwia tworzenie FileStream obiektów.Provides properties and instance methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of FileStream objects. Klasa ta nie może być dziedziczona.This class cannot be inherited. |
FileLoadException |
Wyjątek, który jest generowany, gdy zostanie znaleziony zestaw zarządzany, ale nie można go załadować.The exception that is thrown when a managed assembly is found but cannot be loaded. |
FileNotFoundException |
Wyjątek, który jest generowany, gdy próba uzyskania dostępu do pliku, który nie istnieje na dysku, zakończy się niepowodzeniem.The exception that is thrown when an attempt to access a file that does not exist on disk fails. |
FileStream |
Udostępnia Stream plik do obsługi synchronicznych i asynchronicznych operacji odczytu i zapisu.Provides a Stream for a file, supporting both synchronous and asynchronous read and write operations. |
FileSystemAclExtensions |
Udostępnia statyczne metody rozszerzenia dla systemu Windows na potrzeby manipulowania atrybutami zabezpieczeń listy Access Control (ACL) dla plików i katalogów.Provides Windows-specific static extension methods for manipulating Access Control List (ACL) security attributes for files and directories. |
FileSystemEventArgs |
Zawiera dane dla zdarzeń katalogu: Changed , Created , Deleted .Provides data for the directory events: Changed, Created, Deleted. |
FileSystemInfo |
Udostępnia klasę bazową dla FileInfo obiektów i DirectoryInfo .Provides the base class for both FileInfo and DirectoryInfo objects. |
FileSystemWatcher |
Nasłuchuje powiadomień o zmianie systemu plików i zgłasza zdarzenia, gdy katalog lub plik w katalogu ulegnie zmianie.Listens to the file system change notifications and raises events when a directory, or file in a directory, changes. |
InternalBufferOverflowException |
Wyjątek zgłoszony w przypadku przepełnienia buforu wewnętrznego.The exception thrown when the internal buffer overflows. |
InvalidDataException |
Wyjątek, który jest generowany, gdy strumień danych ma nieprawidłowy format.The exception that is thrown when a data stream is in an invalid format. |
IODescriptionAttribute |
Ustawia opis wizualizacji wizualnych, które mogą być wyświetlane podczas odwoływania się do zdarzenia, rozszerzenia lub właściwości.Sets the description visual designers can display when referencing an event, extender, or property. |
IOException |
Wyjątek, który jest generowany, gdy wystąpi błąd we/wy.The exception that is thrown when an I/O error occurs. |
MemoryStream |
Tworzy strumień, którego zapasowy magazyn jest pamięcią.Creates a stream whose backing store is memory. |
Path |
Wykonuje operacje na String wystąpieniach, które zawierają informacje o ścieżce pliku lub katalogu.Performs operations on String instances that contain file or directory path information. Te operacje są wykonywane w sposób Międzyplatformowy.These operations are performed in a cross-platform manner. |
PathTooLongException |
Wyjątek, który jest generowany, gdy ścieżka lub w pełni kwalifikowana nazwa pliku jest dłuższa niż zdefiniowana w systemie długość maksymalna.The exception that is thrown when a path or fully qualified file name is longer than the system-defined maximum length. |
PipeException |
Zgłaszany w przypadku wystąpienia błędu w nazwanym potoku.Thrown when an error occurs within a named pipe. |
RenamedEventArgs |
Udostępnia dane dla zdarzenia Renamed.Provides data for the Renamed event. |
Stream |
Zawiera ogólny widok sekwencji bajtów.Provides a generic view of a sequence of bytes. Jest to Klasa abstrakcyjna.This is an abstract class. |
StreamReader |
Implementuje element TextReader , który odczytuje znaki ze strumienia bajtów w określonym kodowaniu.Implements a TextReader that reads characters from a byte stream in a particular encoding. |
StreamWriter |
Implementuje do TextWriter zapisu znaków do strumienia w określonym kodowaniu.Implements a TextWriter for writing characters to a stream in a particular encoding. |
StringReader |
Implementuje element TextReader , który odczytuje z ciągu.Implements a TextReader that reads from a string. |
StringWriter |
Implementuje do TextWriter zapisu informacje w ciągu.Implements a TextWriter for writing information to a string. Informacje są przechowywane w podstawowym StringBuilder .The information is stored in an underlying StringBuilder. |
TextReader |
Reprezentuje czytnik, który może odczytywać sekwencyjne serie znaków.Represents a reader that can read a sequential series of characters. |
TextWriter |
Reprezentuje składnik zapisywania, który może napisać sekwencyjne serie znaków.Represents a writer that can write a sequential series of characters. Ta klasa jest abstrakcyjna.This class is abstract. |
UnmanagedMemoryAccessor |
Zapewnia losowy dostęp do niezarządzanych bloków pamięci z kodu zarządzanego.Provides random access to unmanaged blocks of memory from managed code. |
UnmanagedMemoryStream |
Zapewnia dostęp do niezarządzanych bloków pamięci z kodu zarządzanego.Provides access to unmanaged blocks of memory from managed code. |
WindowsRuntimeStorageExtensions |
Zawiera metody rozszerzające IStorageFile interfejsów i IStorageFolder w środowisko wykonawcze systemu Windows podczas tworzenia aplikacji do sklepu Windows.Contains extension methods for the IStorageFile and IStorageFolder interfaces in the Windows Runtime when developing Windows Store apps. |
WindowsRuntimeStreamExtensions |
Zawiera metody rozszerzające między strumieniami w środowisko wykonawcze systemu Windows i strumienie zarządzane w programie .NET dla aplikacji do sklepu Windows.Contains extension methods for converting between streams in the Windows Runtime and managed streams in the .NET for Windows Store apps. |
Struktury
WaitForChangedResult |
Zawiera informacje dotyczące zmian, które wystąpiły.Contains information on the change that occurred. |
Wyliczenia
DriveType |
Definiuje stałe dla typów dysków, w tym CDRom, fixed, Network, NoRootDirectory, pamięci RAM, wymienne i nieznane.Defines constants for drive types, including CDRom, Fixed, Network, NoRootDirectory, Ram, Removable, and Unknown. |
FileAccess |
Definiuje stałe dla dostępu Odczyt, zapis lub odczyt/zapis do pliku.Defines constants for read, write, or read/write access to a file. |
FileAttributes |
Zawiera atrybuty plików i katalogów.Provides attributes for files and directories. |
FileMode |
Określa sposób, w jaki system operacyjny powinien otworzyć plik.Specifies how the operating system should open a file. |
FileOptions |
Reprezentuje opcje zaawansowane tworzenia FileStream obiektu.Represents advanced options for creating a FileStream object. |
FileShare |
Zawiera stałe do kontrolowania rodzaju dostępu inne FileStream obiekty mogą mieć ten sam plik.Contains constants for controlling the kind of access other FileStream objects can have to the same file. |
HandleInheritability |
Określa, czy dojście podstawowe jest dziedziczone przez procesy podrzędne.Specifies whether the underlying handle is inheritable by child processes. |
MatchCasing |
Określa typ wielkości liter znaków do dopasowania.Specifies the type of character casing to match. |
MatchType |
Określa typ dopasowania z symbolami wieloznacznymi do użycia.Specifies the type of wildcard matching to use. |
NotifyFilters |
Określa zmiany do obejrzenia w pliku lub folderze.Specifies changes to watch for in a file or folder. |
SearchOption |
Określa, czy ma być wyszukiwany bieżący katalog, czy bieżący katalog i wszystkie podkatalogi.Specifies whether to search the current directory, or the current directory and all subdirectories. |
SeekOrigin |
Określa pozycję w strumieniu, który ma być używany podczas wyszukiwania.Specifies the position in a stream to use for seeking. |
WatcherChangeTypes |
Zmiany, które mogą wystąpić w pliku lub katalogu.Changes that might occur to a file or directory. |
Delegaci
ErrorEventHandler |
Reprezentuje metodę, która będzie obsługiwać Error zdarzenie FileSystemWatcher obiektu.Represents the method that will handle the Error event of a FileSystemWatcher object. |
FileSystemEventHandler |
Reprezentuje metodę, która będzie obsługiwać Changed zdarzenie, Created , lub Deleted FileSystemWatcher klasy.Represents the method that will handle the Changed, Created, or Deleted event of a FileSystemWatcher class. |
RenamedEventHandler |
Reprezentuje metodę, która będzie obsługiwać Renamed zdarzenie FileSystemWatcher klasy.Represents the method that will handle the Renamed event of a FileSystemWatcher class. |