Show / Hide Table of Contents

Interface IFile

Namespace: DotNetNuke.Services.FileSystem.Internal
Assembly: DotNetNuke.dll
Syntax
public interface IFile

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
Type Description
Task

Create(string)

Declaration
Stream Create(string path)
Parameters
Type Name Description
string path
Returns
Type Description
Stream

Delete(string)

Declaration
void Delete(string path)
Parameters
Type Name Description
string path

DeleteAsync(string)

Declaration
Task DeleteAsync(string path)
Parameters
Type Name Description
string path
Returns
Type Description
Task

Exists(string)

Declaration
bool Exists(string path)
Parameters
Type Name Description
string path
Returns
Type Description
bool

ExistsAsync(string)

Declaration
Task<bool> ExistsAsync(string path)
Parameters
Type Name Description
string path
Returns
Type Description
Task<bool>

GetAttributes(string)

Declaration
FileAttributes GetAttributes(string path)
Parameters
Type Name Description
string path
Returns
Type Description
FileAttributes

GetAttributesAsync(string)

Declaration
Task<FileAttributes> GetAttributesAsync(string path)
Parameters
Type Name Description
string path
Returns
Type Description
Task<FileAttributes>

GetLastWriteTime(string)

Declaration
DateTime GetLastWriteTime(string path)
Parameters
Type Name Description
string path
Returns
Type Description
DateTime

GetLastWriteTimeAsync(string)

Declaration
Task<DateTime> GetLastWriteTimeAsync(string path)
Parameters
Type Name Description
string path
Returns
Type Description
Task<DateTime>

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
Type Description
Task

OpenRead(string)

Declaration
Stream OpenRead(string path)
Parameters
Type Name Description
string path
Returns
Type Description
Stream

ReadAllBytes(string)

Declaration
byte[] ReadAllBytes(string path)
Parameters
Type Name Description
string path
Returns
Type Description
byte[]

ReadAllBytesAsync(string)

Declaration
Task<byte[]> ReadAllBytesAsync(string path)
Parameters
Type Name Description
string path
Returns
Type Description
Task<byte[]>

SetAttributes(string, FileAttributes)

Declaration
void SetAttributes(string path, FileAttributes fileAttributes)
Parameters
Type Name Description
string path
FileAttributes fileAttributes

SetAttributesAsync(string, FileAttributes)

Declaration
Task SetAttributesAsync(string path, FileAttributes fileAttributes)
Parameters
Type Name Description
string path
FileAttributes fileAttributes
Returns
Type Description
Task

Extension Methods

JsonExtensionsWeb.ToJson(object)
Back to top by the community, for the community... #DNNCMS