Метод | Описание | |
---|---|---|
Copy ( |
Copies the specified file to a specified new file, indicating whether to overwrite an existing file.
|
|
Delete ( |
Deletes the specified file.
|
|
Exists ( |
Returns a value indicating whether the specified path refers to an existing file. Note that this method will return false if any error occurs while trying to determine if the specified file exists. This includes situations that would normally result in thrown exceptions including (but not limited to); passing in a file name with invalid or too many characters, an I/O error such as a failing or missing disk, or if the caller does not have Windows or Code Access Security (CAS) permissions to to read the file. |
|
Move ( |
Moves the specified file to a new location.
|
|
Open ( |
Opens the specified file.
|
|
Open ( |
Opens the specified file.
|
Метод | Описание | |
---|---|---|
GetFileHandle ( |
||
GetFileHandle ( string normalizedPath, FileMode mode, FileAccess access, FileShare share, FileOptions options ) : SafeFileHandle |
public static Copy ( |
||
sourcePath |
/// A |
|
destinationPath |
/// A |
|
overwrite | bool |
/// |
Результат | void |
public static Delete ( |
||
path |
/// A |
|
Результат | void |
public static Exists ( |
||
path |
/// A |
|
Результат | bool |
public static Move ( |
||
sourcePath |
/// A |
|
destinationPath |
/// A |
|
Результат | void |
public static Open ( |
||
path |
/// A |
|
mode | FileMode |
/// One of the |
access | FileAccess |
/// One of the |
share | FileShare |
/// One of the |
Результат |
public static Open ( |
||
path |
/// A |
|
mode | FileMode |
/// One of the |
access | FileAccess |
/// One of the |
share | FileShare |
/// One of the |
bufferSize | int |
/// An |
options | FileOptions |
/// One or more of the |
Результат |