C# Class DotNetIO.FileSystems.InMemory.InMemoryFile

Inheritance: System.IO.File
Afficher le fichier Open project: DotNetIO/DotNetIO Class Usage Examples

Protected Properties

Свойство Type Description
_exists bool

Méthodes publiques

Méthode Description
CopyTo ( FileSystemItem where ) : void
Create ( ) : File
Delete ( ) : void
Exists ( ) : bool
GetLastModifiedTimeUtc ( ) : DateTimeOffset?
GetSize ( ) : long
InMemoryFile ( string filePath ) : System
MoveTo ( FileSystemItem newFileName ) : FileSystemItem
Open ( FileMode fileMode, FileAccess fileAccess, FileShare fileShare, int bufSize, FileOptions fileOptions ) : Stream
ToString ( ) : string

Private Methods

Méthode Description
CopyFromFile ( InMemoryFile fileToCopy ) : void
EnsureExists ( ) : void
FileStreamClosed ( ) : void
Resize ( long offset ) : void
ValidateFileLock ( FileAccess fileAccess, FileShare fileShare ) : void
ValidateFileMode ( FileMode fileMode ) : long
VerifyExists ( ) : void

Method Details

CopyTo() public méthode

public CopyTo ( FileSystemItem where ) : void
where FileSystemItem
Résultat void

Create() public méthode

public Create ( ) : File
Résultat System.IO.File

Delete() public méthode

public Delete ( ) : void
Résultat void

Exists() public méthode

public Exists ( ) : bool
Résultat bool

GetLastModifiedTimeUtc() public méthode

public GetLastModifiedTimeUtc ( ) : DateTimeOffset?
Résultat DateTimeOffset?

GetSize() public méthode

public GetSize ( ) : long
Résultat long

InMemoryFile() public méthode

public InMemoryFile ( string filePath ) : System
filePath string
Résultat System

MoveTo() public méthode

public MoveTo ( FileSystemItem newFileName ) : FileSystemItem
newFileName FileSystemItem
Résultat FileSystemItem

Open() public méthode

public Open ( FileMode fileMode, FileAccess fileAccess, FileShare fileShare, int bufSize, FileOptions fileOptions ) : Stream
fileMode FileMode
fileAccess FileAccess
fileShare FileShare
bufSize int
fileOptions FileOptions
Résultat Stream

ToString() public méthode

public ToString ( ) : string
Résultat string

Property Details

_exists protected_oe property

protected bool _exists
Résultat bool