C# 클래스 CmisSync.Lib.Storage.FileSystem.ReadOnlyIgnoringFileInfoDecorator

Read only ignoring file info decorator decorades the given IFileInfo instance and removes read only flag before executing the operation and adds it back after successful operation.
상속: ReadOnlyIgnoringFileSystemInfoDecorator, IFileInfo
파일 보기 프로젝트 열기: OpenDataSpace/CmisSync 1 사용 예제들

공개 메소드들

메소드 설명
Delete ( ) : void

Deletes the file on the fs.

MoveTo ( string target ) : void

Moves to target file.

Open ( FileMode open ) : Stream

Open the specified file.

Open ( FileMode open, FileAccess access ) : Stream

Open the specified file with the open and access mode.

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

Open the specified file with given open, access and share mode.

ReadOnlyIgnoringFileInfoDecorator ( IFileInfo fileInfo ) : System

Initializes a new instance of the CmisSync.Lib.Storage.FileSystem.ReadOnlyIgnoringFileInfoDecorator class.

Replace ( IFileInfo destinationFile, IFileInfo destinationBackupFileName, bool ignoreMetadataErrors ) : IFileInfo

Replaces the contents of a specified destinationFile with the file described by the current IFileInfo object, deleting the original file, and creating a backup of the replaced file. Also specifies whether to ignore merge errors.

메소드 상세

Delete() 공개 메소드

Deletes the file on the fs.
public Delete ( ) : void
리턴 void

MoveTo() 공개 메소드

Moves to target file.
public MoveTo ( string target ) : void
target string Target file name.
리턴 void

Open() 공개 메소드

Open the specified file.
public Open ( FileMode open ) : Stream
open FileMode Open mode.
리턴 Stream

Open() 공개 메소드

Open the specified file with the open and access mode.
public Open ( FileMode open, FileAccess access ) : Stream
open FileMode Open mode.
access FileAccess Access Mode.
리턴 Stream

Open() 공개 메소드

Open the specified file with given open, access and share mode.
public Open ( FileMode open, FileAccess access, FileShare share ) : Stream
open FileMode Open mode.
access FileAccess Access mode.
share FileShare Share mode.
리턴 Stream

ReadOnlyIgnoringFileInfoDecorator() 공개 메소드

Initializes a new instance of the CmisSync.Lib.Storage.FileSystem.ReadOnlyIgnoringFileInfoDecorator class.
public ReadOnlyIgnoringFileInfoDecorator ( IFileInfo fileInfo ) : System
fileInfo IFileInfo File info.
리턴 System

Replace() 공개 메소드

Replaces the contents of a specified destinationFile with the file described by the current IFileInfo object, deleting the original file, and creating a backup of the replaced file. Also specifies whether to ignore merge errors.
public Replace ( IFileInfo destinationFile, IFileInfo destinationBackupFileName, bool ignoreMetadataErrors ) : IFileInfo
destinationFile IFileInfo Destination file.
destinationBackupFileName IFileInfo Destination backup file name.
ignoreMetadataErrors bool true to ignore merge errors (such as attributes and ACLs) from the replaced file to the replacement file; otherwise false.
리턴 IFileInfo