Class FileWrapper
Inheritance
System.Object
FileWrapper
Assembly: DotNetNuke.dll
Syntax
public class FileWrapper : ComponentBase<IFile, FileWrapper>, IFile
Methods
|
Improve this Doc
View Source
Copy(String, String, Boolean)
Declaration
public void Copy(string sourceFileName, string destinationFileName, bool overwrite)
Parameters
Type |
Name |
Description |
System.String |
sourceFileName |
|
System.String |
destinationFileName |
|
System.Boolean |
overwrite |
|
|
Improve this Doc
View Source
Create(String)
Declaration
public Stream Create(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
|
Improve this Doc
View Source
Delete(String)
Declaration
public void Delete(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
|
Improve this Doc
View Source
Exists(String)
Declaration
public bool Exists(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GetAttributes(String)
Declaration
public FileAttributes GetAttributes(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
FileAttributes |
|
|
Improve this Doc
View Source
GetLastWriteTime(String)
Declaration
public DateTime GetLastWriteTime(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
DateTime |
|
|
Improve this Doc
View Source
Move(String, String)
Declaration
public void Move(string sourceFileName, string destFileName)
Parameters
Type |
Name |
Description |
System.String |
sourceFileName |
|
System.String |
destFileName |
|
|
Improve this Doc
View Source
OpenRead(String)
Declaration
public Stream OpenRead(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
|
Improve this Doc
View Source
ReadAllBytes(String)
Declaration
public byte[] ReadAllBytes(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
SetAttributes(String, FileAttributes)
Declaration
public void SetAttributes(string path, FileAttributes fileAttributes)
Parameters
Type |
Name |
Description |
System.String |
path |
|
FileAttributes |
fileAttributes |
|
Implements
Extension Methods