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
Показать файл Открыть проект

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

Метод Описание
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