C# Класс CmisSync.Lib.Storage.FileSystem.ExtendedAttributeReaderDos

Extended attribute reader for Windows.
Наследование: IExtendedAttributeReader
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetExtendedAttribute ( string path, string key ) : string

Retrieves the extended attribute.

IsFeatureAvailable ( string path ) : bool

Determines whether Extended Attributes are available on the filesystem.

ListAttributeKeys ( string path ) : List

Lists the attribute keys.

RemoveExtendedAttribute ( string path, string key ) : void

Removes the extended attribute.

SetExtendedAttribute ( string path, string key, string value, bool restoreLastModificationDate = false ) : void

Sets the extended attribute.

Приватные методы

Метод Описание
BackupRead ( SafeFileHandle hFile, IntPtr lpBuffer, uint nNumberOfBytesToRead, uint &lpNumberOfBytesRead, [ bAbort, [ bProcessSecurity, IntPtr &lpContext ) : bool
BackupSeek ( SafeFileHandle hFile, uint dwLowBytesToSeek, uint dwHighBytesToSeek, uint &lpdwLowByteSeeked, uint &lpdwHighByteSeeked, IntPtr &lpContext ) : bool
CloseHandle ( IntPtr handle ) : bool
CreateFile ( string name, FileAccess access, FileShare share, IntPtr security, FileMode mode, FILE_FLAGS flags, IntPtr templateFile ) : SafeFileHandle
CreateFileHandle ( string path, FileAccess access, FileMode mode, FileShare share ) : SafeFileHandle
CreateFileStream ( string path, FileAccess access, FileMode mode, FileShare share ) : FileStream
DeleteFile ( string fileName ) : bool
FormatMessage ( uint dwFlags, IntPtr lpSource, int dwMessageId, uint dwLanguageId, StringBuilder lpBuffer, int nSize, IntPtr vaListArguments ) : int
GetKeys ( string path ) : IEnumerable
GetLastErrorMessage ( ) : string
GetStreams ( SafeFileHandle fh ) : IEnumerable
SetExtendedAttributeAndRestoreLastModificationDate ( string path, string key, string value ) : void

Sets the extended attribute and restore last modification date.

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

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

Retrieves the extended attribute.
public GetExtendedAttribute ( string path, string key ) : string
path string Retrrieves attribute of this path.
key string Key of the attribute, which should be retrieved.
Результат string

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

Determines whether Extended Attributes are available on the filesystem.
public IsFeatureAvailable ( string path ) : bool
path string Path to be checked
Результат bool

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

Lists the attribute keys.
public ListAttributeKeys ( string path ) : List
path string Path which should be read.
Результат List

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

Removes the extended attribute.
public RemoveExtendedAttribute ( string path, string key ) : void
path string Removes attribute from this path.
key string Key of the attribute, which should be removed.
Результат void

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

Sets the extended attribute.
public SetExtendedAttribute ( string path, string key, string value, bool restoreLastModificationDate = false ) : void
path string Sets attribute of this path.
key string Key of the attribute, which should be set.
value string The value to set.
restoreLastModificationDate bool
Результат void