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

Read only ignoring file system info decorator hides a given instance and removes read only flags before writing a change and adds it after successful operation.
상속: IFileSystemInfo
파일 보기 프로젝트 열기: OpenDataSpace/CmisSync

공개 메소드들

메소드 설명
GetExtendedAttribute ( string key ) : string

Gets the extended attribute.

IsExtendedAttributeAvailable ( ) : bool

Determines whether instance is able to save extended attributes.

ReadOnlyIgnoringFileSystemInfoDecorator ( IFileSystemInfo info ) : System

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

Refresh ( ) : void

Refresh the loaded information of this instance.

SetExtendedAttribute ( string key, string value, bool restoreModificationDate ) : void

Sets the extended attribute.

보호된 메소드들

메소드 설명
DisableAndEnableReadOnlyForOperation ( System.Action writeOperation ) : void

Disables read only before executing action end reenables read only after it.

메소드 상세

DisableAndEnableReadOnlyForOperation() 보호된 메소드

Disables read only before executing action end reenables read only after it.
protected DisableAndEnableReadOnlyForOperation ( System.Action writeOperation ) : void
writeOperation System.Action Write operation.
리턴 void

GetExtendedAttribute() 공개 메소드

Gets the extended attribute.
public GetExtendedAttribute ( string key ) : string
key string Attribute name.
리턴 string

IsExtendedAttributeAvailable() 공개 메소드

Determines whether instance is able to save extended attributes.
public IsExtendedAttributeAvailable ( ) : bool
리턴 bool

ReadOnlyIgnoringFileSystemInfoDecorator() 공개 메소드

Initializes a new instance of the CmisSync.Lib.Storage.FileSystem.ReadOnlyIgnoringFileSystemInfoDecorator class.
public ReadOnlyIgnoringFileSystemInfoDecorator ( IFileSystemInfo info ) : System
info IFileSystemInfo Decorated file system info instance.
리턴 System

Refresh() 공개 메소드

Refresh the loaded information of this instance.
public Refresh ( ) : void
리턴 void

SetExtendedAttribute() 공개 메소드

Sets the extended attribute.
public SetExtendedAttribute ( string key, string value, bool restoreModificationDate ) : void
key string Attribute name.
value string Attribute value.
restoreModificationDate bool If set to true, the last modification date of the file will be restored after setting the attribute. If false it could have been changed by the file system.
리턴 void