Метод | Описание | |
---|---|---|
ChangeExtension ( string extension, bool isReadOnly, bool isSharingEnabled ) : void |
Changes the extension of the current file.
|
|
ChangeShareMode ( bool isReadOnly, bool isSharingEnabled ) : void |
Reopens the file with different permissions.
|
|
CommitChanges ( FileHeaderBlock header ) : void |
Occurs when committing the following data to the disk. This will copy any pending data to the disk in a manner that will protect against corruption.
|
|
CreateDiskIoSession ( FileHeaderBlock header, SubFileHeader file ) : |
Creates a DiskIoSession that can be used to perform basic read/write functions.
|
|
CreateFile ( string fileName, |
||
CreateMemoryFile ( |
||
Dispose ( ) : void |
Releases the unmanaged resources used by the DiskIo object and optionally releases the managed resources.
|
|
OpenFile ( string fileName, |
||
RollbackChanges ( ) : void |
Occurs when rolling back a transaction. This will free up any temporary space allocated for the change.
|
Метод | Описание | |
---|---|---|
DiskIo ( |
public ChangeExtension ( string extension, bool isReadOnly, bool isSharingEnabled ) : void | ||
extension | string | the new extension |
isReadOnly | bool | If the file should be reopened as readonly |
isSharingEnabled | bool | If the file should share read privileges. |
Результат | void |
public ChangeShareMode ( bool isReadOnly, bool isSharingEnabled ) : void | ||
isReadOnly | bool | If the file should be reopened as readonly |
isSharingEnabled | bool | If the file should share read privileges. |
Результат | void |
public CommitChanges ( FileHeaderBlock header ) : void | ||
header | FileHeaderBlock | |
Результат | void |
public CreateDiskIoSession ( FileHeaderBlock header, SubFileHeader file ) : |
||
header | FileHeaderBlock | |
file | SubFileHeader | |
Результат |
public static CreateFile ( string fileName, |
||
fileName | string | |
pool | ||
fileStructureBlockSize | int | |
Результат |
public static CreateMemoryFile ( |
||
pool | ||
fileStructureBlockSize | int | |
Результат |
public static OpenFile ( string fileName, |
||
fileName | string | |
pool | ||
isReadOnly | bool | |
Результат |