C# Класс NinjaCoder.MvvmCross.Tests.Mocks.MockFileInfo

Defines the MockFileInfo type.
Наследование: System.IO.Abstractions.FileInfoBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AppendText ( ) : StreamWriter

Appends the text.

CopyTo ( string destFileName ) : System.IO.Abstractions.FileInfoBase

Copies to.

CopyTo ( string destFileName, bool overwrite ) : System.IO.Abstractions.FileInfoBase

Copies to.

Create ( ) : Stream

Creates this instance.

CreateText ( ) : StreamWriter

Creates the text.

Decrypt ( ) : void

Decrypts this instance.

Delete ( ) : void

Deletes this instance.

Encrypt ( ) : void

Encrypts this instance.

GetAccessControl ( ) : FileSecurity

Gets the access control.

GetAccessControl ( AccessControlSections includeSections ) : FileSecurity

Gets the access control.

MoveTo ( string destFileName ) : void

Moves to.

Open ( FileMode mode ) : Stream

Opens the specified mode.

Open ( FileMode mode, FileAccess access ) : Stream

Opens the specified mode.

Open ( FileMode mode, FileAccess access, FileShare share ) : Stream

Opens the specified mode.

OpenRead ( ) : Stream

Opens the read.

OpenText ( ) : StreamReader

Opens the text.

OpenWrite ( ) : Stream

Opens the write.

Refresh ( ) : void

Refreshes this instance.

Replace ( string destinationFileName, string destinationBackupFileName ) : System.IO.Abstractions.FileInfoBase

Replaces the specified destination file name.

Replace ( string destinationFileName, string destinationBackupFileName, bool ignoreMetadataErrors ) : System.IO.Abstractions.FileInfoBase

Replaces the specified destination file name.

SetAccessControl ( FileSecurity fileSecurity ) : void

Sets the access control.

Описание методов

AppendText() публичный Метод

Appends the text.
public AppendText ( ) : StreamWriter
Результат System.IO.StreamWriter

CopyTo() публичный Метод

Copies to.
public CopyTo ( string destFileName ) : System.IO.Abstractions.FileInfoBase
destFileName string Name of the dest file.
Результат System.IO.Abstractions.FileInfoBase

CopyTo() публичный Метод

Copies to.
public CopyTo ( string destFileName, bool overwrite ) : System.IO.Abstractions.FileInfoBase
destFileName string Name of the dest file.
overwrite bool if set to true [overwrite].
Результат System.IO.Abstractions.FileInfoBase

Create() публичный Метод

Creates this instance.
public Create ( ) : Stream
Результат Stream

CreateText() публичный Метод

Creates the text.
public CreateText ( ) : StreamWriter
Результат System.IO.StreamWriter

Decrypt() публичный Метод

Decrypts this instance.
public Decrypt ( ) : void
Результат void

Delete() публичный Метод

Deletes this instance.
public Delete ( ) : void
Результат void

Encrypt() публичный Метод

Encrypts this instance.
public Encrypt ( ) : void
Результат void

GetAccessControl() публичный Метод

Gets the access control.
public GetAccessControl ( ) : FileSecurity
Результат System.Security.AccessControl.FileSecurity

GetAccessControl() публичный Метод

Gets the access control.
public GetAccessControl ( AccessControlSections includeSections ) : FileSecurity
includeSections AccessControlSections The include sections.
Результат System.Security.AccessControl.FileSecurity

MoveTo() публичный Метод

Moves to.
public MoveTo ( string destFileName ) : void
destFileName string Name of the dest file.
Результат void

Open() публичный Метод

Opens the specified mode.
public Open ( FileMode mode ) : Stream
mode FileMode The mode.
Результат Stream

Open() публичный Метод

Opens the specified mode.
public Open ( FileMode mode, FileAccess access ) : Stream
mode FileMode The mode.
access FileAccess The access.
Результат Stream

Open() публичный Метод

Opens the specified mode.
public Open ( FileMode mode, FileAccess access, FileShare share ) : Stream
mode FileMode The mode.
access FileAccess The access.
share FileShare The share.
Результат Stream

OpenRead() публичный Метод

Opens the read.
public OpenRead ( ) : Stream
Результат Stream

OpenText() публичный Метод

Opens the text.
public OpenText ( ) : StreamReader
Результат System.IO.StreamReader

OpenWrite() публичный Метод

Opens the write.
public OpenWrite ( ) : Stream
Результат Stream

Refresh() публичный Метод

Refreshes this instance.
public Refresh ( ) : void
Результат void

Replace() публичный Метод

Replaces the specified destination file name.
public Replace ( string destinationFileName, string destinationBackupFileName ) : System.IO.Abstractions.FileInfoBase
destinationFileName string Name of the destination file.
destinationBackupFileName string Name of the destination backup file.
Результат System.IO.Abstractions.FileInfoBase

Replace() публичный Метод

Replaces the specified destination file name.
public Replace ( string destinationFileName, string destinationBackupFileName, bool ignoreMetadataErrors ) : System.IO.Abstractions.FileInfoBase
destinationFileName string Name of the destination file.
destinationBackupFileName string Name of the destination backup file.
ignoreMetadataErrors bool if set to true [ignore metadata errors].
Результат System.IO.Abstractions.FileInfoBase

SetAccessControl() публичный Метод

Sets the access control.
public SetAccessControl ( FileSecurity fileSecurity ) : void
fileSecurity System.Security.AccessControl.FileSecurity The file security.
Результат void