Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
GetFileHandle ( |
||
GetFileHandle ( string normalizedPath, FileMode mode, FileAccess access, FileShare share, FileOptions options ) : SafeFileHandle |
public static Copy ( |
||
sourcePath |
/// A |
|
destinationPath |
/// A |
|
overwrite | bool |
/// |
return | void |
public static Delete ( |
||
path |
/// A |
|
return | void |
public static Exists ( |
||
path |
/// A |
|
return | bool |
public static Move ( |
||
sourcePath |
/// A |
|
destinationPath |
/// A |
|
return | void |
public static Open ( |
||
path |
/// A |
|
mode | FileMode |
/// One of the |
access | FileAccess |
/// One of the |
share | FileShare |
/// One of the |
return |
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 |
return |