Show / Hide Table of Contents

Class FileWrapper

Inheritance
object
ComponentBase<IFile, FileWrapper>
FileWrapper
Implements
IFile
Inherited Members
ComponentBase<IFile, FileWrapper>.RegisterInstance(IFile)
ComponentBase<IFile, FileWrapper>.Instance
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DotNetNuke.Services.FileSystem.Internal
Assembly: DotNetNuke.dll
Syntax
public class FileWrapper : ComponentBase<IFile, FileWrapper>, IFile

Constructors

FileWrapper()

Declaration
public FileWrapper()

Methods

Copy(string, string, bool)

Declaration
public void Copy(string sourceFileName, string destinationFileName, bool overwrite)
Parameters
Type Name Description
string sourceFileName
string destinationFileName
bool overwrite

Create(string)

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

Delete(string)

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

Exists(string)

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

GetAttributes(string)

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

GetLastWriteTime(string)

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

Move(string, string)

Declaration
public void Move(string sourceFileName, string destFileName)
Parameters
Type Name Description
string sourceFileName
string destFileName

OpenRead(string)

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

ReadAllBytes(string)

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

SetAttributes(string, FileAttributes)

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

Implements

IFile

Extension Methods

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