Interface IFile
Assembly: DotNetNuke.dll
Syntax
Methods
Copy(string, string, bool)
Declaration
void Copy(string sourceFileName, string destinationFileName, bool overwrite)
Parameters
| Type |
Name |
Description |
| string |
sourceFileName |
|
| string |
destinationFileName |
|
| bool |
overwrite |
|
CopyAsync(string, string, bool)
Declaration
Task CopyAsync(string sourceFileName, string destinationFileName, bool overwrite)
Parameters
| Type |
Name |
Description |
| string |
sourceFileName |
|
| string |
destinationFileName |
|
| bool |
overwrite |
|
Returns
Create(string)
Declaration
Stream Create(string path)
Parameters
| Type |
Name |
Description |
| string |
path |
|
Returns
Delete(string)
Declaration
Parameters
| Type |
Name |
Description |
| string |
path |
|
DeleteAsync(string)
Declaration
Task DeleteAsync(string path)
Parameters
| Type |
Name |
Description |
| string |
path |
|
Returns
Exists(string)
Declaration
Parameters
| Type |
Name |
Description |
| string |
path |
|
Returns
ExistsAsync(string)
Declaration
Task<bool> ExistsAsync(string path)
Parameters
| Type |
Name |
Description |
| string |
path |
|
Returns
GetAttributes(string)
Declaration
FileAttributes GetAttributes(string path)
Parameters
| Type |
Name |
Description |
| string |
path |
|
Returns
GetAttributesAsync(string)
Declaration
Task<FileAttributes> GetAttributesAsync(string path)
Parameters
| Type |
Name |
Description |
| string |
path |
|
Returns
GetLastWriteTime(string)
Declaration
DateTime GetLastWriteTime(string path)
Parameters
| Type |
Name |
Description |
| string |
path |
|
Returns
GetLastWriteTimeAsync(string)
Declaration
Task<DateTime> GetLastWriteTimeAsync(string path)
Parameters
| Type |
Name |
Description |
| string |
path |
|
Returns
Move(string, string)
Declaration
void Move(string sourceFileName, string destFileName)
Parameters
| Type |
Name |
Description |
| string |
sourceFileName |
|
| string |
destFileName |
|
MoveAsync(string, string)
Declaration
Task MoveAsync(string sourceFileName, string destFileName)
Parameters
| Type |
Name |
Description |
| string |
sourceFileName |
|
| string |
destFileName |
|
Returns
OpenRead(string)
Declaration
Stream OpenRead(string path)
Parameters
| Type |
Name |
Description |
| string |
path |
|
Returns
ReadAllBytes(string)
Declaration
byte[] ReadAllBytes(string path)
Parameters
| Type |
Name |
Description |
| string |
path |
|
Returns
ReadAllBytesAsync(string)
Declaration
Task<byte[]> ReadAllBytesAsync(string path)
Parameters
| Type |
Name |
Description |
| string |
path |
|
Returns
SetAttributes(string, FileAttributes)
Declaration
void SetAttributes(string path, FileAttributes fileAttributes)
Parameters
SetAttributesAsync(string, FileAttributes)
Declaration
Task SetAttributesAsync(string path, FileAttributes fileAttributes)
Parameters
Returns
WriteAllText(string, string)
Declaration
void WriteAllText(string path, string contents)
Parameters
WriteAllTextAsync(string, string)
Declaration
Task WriteAllTextAsync(string path, string contents)
Parameters
Returns
Extension Methods