set_attribute_byte_string


Description:

public bool set_attribute_byte_string (string attribute, string value, FileQueryInfoFlags flags, Cancellable? cancellable = null) throws Error

Sets attribute of type g_file_attribute_type_byte_string to value.

If attribute is of a different type, this operation will fail, returning false.

If cancellable is not null, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error g_io_error_cancelled will be returned.

Parameters:

this

input File

attribute

a string containing the attribute's name

value

a string containing the attribute's new value

flags

a FileQueryInfoFlags

cancellable

optional Cancellable object, null to ignore

Returns:

true if the attribute was successfully set to value in the this, false otherwise.