Table of Contents

Class File

Namespace
Gio.Internal
Assembly
Gio-2.0.dll
public class File
Inheritance
File
Inherited Members

Methods

AppendTo(IntPtr, FileCreateFlags, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_append_to.

public static extern IntPtr AppendTo(IntPtr file, FileCreateFlags flags, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

flags FileCreateFlags

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

AppendToAsync(IntPtr, FileCreateFlags, int, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_append_to_async.

public static extern void AppendToAsync(IntPtr file, FileCreateFlags flags, int ioPriority, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

flags FileCreateFlags

Transfer ownership: None Nullable: False

ioPriority int

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

AppendToFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_append_to_finish.

public static extern IntPtr AppendToFinish(IntPtr file, IntPtr res, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

res IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

BuildAttributeListForCopy(IntPtr, FileCopyFlags, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_build_attribute_list_for_copy. Version: 2.68

[Version("2.68")]
public static extern NonNullableUtf8StringOwnedHandle BuildAttributeListForCopy(IntPtr file, FileCopyFlags flags, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

flags FileCopyFlags

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

NonNullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: False

Copy(IntPtr, IntPtr, FileCopyFlags, IntPtr, FileProgressCallback, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_copy.

public static extern bool Copy(IntPtr source, IntPtr destination, FileCopyFlags flags, IntPtr cancellable, FileProgressCallback progressCallback, IntPtr progressCallbackData, out ErrorOwnedHandle error)

Parameters

source IntPtr

Transfer ownership: None Nullable: False

destination IntPtr

Transfer ownership: None Nullable: False

flags FileCopyFlags

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

progressCallback FileProgressCallback

Transfer ownership: None Nullable: True

progressCallbackData IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

CopyAsync(IntPtr, IntPtr, FileCopyFlags, int, IntPtr, FileProgressCallback, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_copy_async.

public static extern void CopyAsync(IntPtr source, IntPtr destination, FileCopyFlags flags, int ioPriority, IntPtr cancellable, FileProgressCallback progressCallback, IntPtr progressCallbackData, AsyncReadyCallback callback, IntPtr userData)

Parameters

source IntPtr

Transfer ownership: None Nullable: False

destination IntPtr

Transfer ownership: None Nullable: False

flags FileCopyFlags

Transfer ownership: None Nullable: False

ioPriority int

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

progressCallback FileProgressCallback

Transfer ownership: None Nullable: True

progressCallbackData IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

CopyAttributes(IntPtr, IntPtr, FileCopyFlags, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_copy_attributes.

public static extern bool CopyAttributes(IntPtr source, IntPtr destination, FileCopyFlags flags, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

source IntPtr

Transfer ownership: None Nullable: False

destination IntPtr

Transfer ownership: None Nullable: False

flags FileCopyFlags

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

CopyFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_copy_finish.

public static extern bool CopyFinish(IntPtr file, IntPtr res, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

res IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

Create(IntPtr, FileCreateFlags, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_create.

public static extern IntPtr Create(IntPtr file, FileCreateFlags flags, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

flags FileCreateFlags

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

CreateAsync(IntPtr, FileCreateFlags, int, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_create_async.

public static extern void CreateAsync(IntPtr file, FileCreateFlags flags, int ioPriority, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

flags FileCreateFlags

Transfer ownership: None Nullable: False

ioPriority int

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

CreateFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_create_finish.

public static extern IntPtr CreateFinish(IntPtr file, IntPtr res, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

res IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

CreateReadwrite(IntPtr, FileCreateFlags, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_create_readwrite. Version: 2.22

[Version("2.22")]
public static extern IntPtr CreateReadwrite(IntPtr file, FileCreateFlags flags, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

flags FileCreateFlags

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

CreateReadwriteAsync(IntPtr, FileCreateFlags, int, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_create_readwrite_async. Version: 2.22

[Version("2.22")]
public static extern void CreateReadwriteAsync(IntPtr file, FileCreateFlags flags, int ioPriority, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

flags FileCreateFlags

Transfer ownership: None Nullable: False

ioPriority int

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

CreateReadwriteFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_create_readwrite_finish. Version: 2.22

[Version("2.22")]
public static extern IntPtr CreateReadwriteFinish(IntPtr file, IntPtr res, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

res IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

Delete(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_delete.

public static extern bool Delete(IntPtr file, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

DeleteAsync(IntPtr, int, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_delete_async. Version: 2.34

[Version("2.34")]
public static extern void DeleteAsync(IntPtr file, int ioPriority, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

ioPriority int

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

DeleteFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_delete_finish. Version: 2.34

[Version("2.34")]
public static extern bool DeleteFinish(IntPtr file, IntPtr result, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

Dup(IntPtr)

Calls native method g_file_dup.

public static extern IntPtr Dup(IntPtr file)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

EjectMountable(IntPtr, MountUnmountFlags, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_eject_mountable.

public static extern void EjectMountable(IntPtr file, MountUnmountFlags flags, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

flags MountUnmountFlags

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

EjectMountableFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_eject_mountable_finish.

public static extern bool EjectMountableFinish(IntPtr file, IntPtr result, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

EjectMountableWithOperation(IntPtr, MountUnmountFlags, IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_eject_mountable_with_operation. Version: 2.22

[Version("2.22")]
public static extern void EjectMountableWithOperation(IntPtr file, MountUnmountFlags flags, IntPtr mountOperation, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

flags MountUnmountFlags

Transfer ownership: None Nullable: False

mountOperation IntPtr

Transfer ownership: None Nullable: True

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

EjectMountableWithOperationFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_eject_mountable_with_operation_finish. Version: 2.22

[Version("2.22")]
public static extern bool EjectMountableWithOperationFinish(IntPtr file, IntPtr result, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

EnumerateChildren(IntPtr, NonNullableUtf8StringHandle, FileQueryInfoFlags, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_enumerate_children.

public static extern IntPtr EnumerateChildren(IntPtr file, NonNullableUtf8StringHandle attributes, FileQueryInfoFlags flags, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

attributes NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

flags FileQueryInfoFlags

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

EnumerateChildrenAsync(IntPtr, NonNullableUtf8StringHandle, FileQueryInfoFlags, int, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_enumerate_children_async.

public static extern void EnumerateChildrenAsync(IntPtr file, NonNullableUtf8StringHandle attributes, FileQueryInfoFlags flags, int ioPriority, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

attributes NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

flags FileQueryInfoFlags

Transfer ownership: None Nullable: False

ioPriority int

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

EnumerateChildrenFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_enumerate_children_finish.

public static extern IntPtr EnumerateChildrenFinish(IntPtr file, IntPtr res, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

res IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

Equal(IntPtr, IntPtr)

Calls native method g_file_equal.

public static extern bool Equal(IntPtr file1, IntPtr file2)

Parameters

file1 IntPtr

Transfer ownership: None Nullable: False

file2 IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

FindEnclosingMount(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_find_enclosing_mount.

public static extern IntPtr FindEnclosingMount(IntPtr file, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

FindEnclosingMountAsync(IntPtr, int, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_find_enclosing_mount_async.

public static extern void FindEnclosingMountAsync(IntPtr file, int ioPriority, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

ioPriority int

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

FindEnclosingMountFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_find_enclosing_mount_finish.

public static extern IntPtr FindEnclosingMountFinish(IntPtr file, IntPtr res, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

res IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

GetBasename(IntPtr)

Calls native method g_file_get_basename.

public static extern NullablePlatformStringOwnedHandle GetBasename(IntPtr file)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

Returns

NullablePlatformStringOwnedHandle

Transfer ownership: Full Nullable: True

GetChild(IntPtr, NonNullablePlatformStringHandle)

Calls native method g_file_get_child.

public static extern IntPtr GetChild(IntPtr file, NonNullablePlatformStringHandle name)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

name NonNullablePlatformStringHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

GetChildForDisplayName(IntPtr, NonNullableUtf8StringHandle, out ErrorOwnedHandle)

Calls native method g_file_get_child_for_display_name.

public static extern IntPtr GetChildForDisplayName(IntPtr file, NonNullableUtf8StringHandle displayName, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

displayName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

GetGType()

Calls native function g_file_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetParent(IntPtr)

Calls native method g_file_get_parent.

public static extern IntPtr GetParent(IntPtr file)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: True

GetParseName(IntPtr)

Calls native method g_file_get_parse_name.

public static extern NonNullableUtf8StringOwnedHandle GetParseName(IntPtr file)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: False

GetPath(IntPtr)

Calls native method g_file_get_path.

public static extern NullablePlatformStringOwnedHandle GetPath(IntPtr file)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

Returns

NullablePlatformStringOwnedHandle

Transfer ownership: Full Nullable: True

GetRelativePath(IntPtr, IntPtr)

Calls native method g_file_get_relative_path.

public static extern NullablePlatformStringOwnedHandle GetRelativePath(IntPtr parent, IntPtr descendant)

Parameters

parent IntPtr

Transfer ownership: None Nullable: False

descendant IntPtr

Transfer ownership: None Nullable: False

Returns

NullablePlatformStringOwnedHandle

Transfer ownership: Full Nullable: True

GetUri(IntPtr)

Calls native method g_file_get_uri.

public static extern NonNullableUtf8StringOwnedHandle GetUri(IntPtr file)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: False

GetUriScheme(IntPtr)

Calls native method g_file_get_uri_scheme.

public static extern NullableUtf8StringOwnedHandle GetUriScheme(IntPtr file)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: True

HasParent(IntPtr, IntPtr)

Calls native method g_file_has_parent. Version: 2.24

[Version("2.24")]
public static extern bool HasParent(IntPtr file, IntPtr parent)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

parent IntPtr

Transfer ownership: None Nullable: True

Returns

bool

Transfer ownership: None Nullable: False

HasPrefix(IntPtr, IntPtr)

Calls native method g_file_has_prefix.

public static extern bool HasPrefix(IntPtr file, IntPtr prefix)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

prefix IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

HasUriScheme(IntPtr, NonNullableUtf8StringHandle)

Calls native method g_file_has_uri_scheme.

public static extern bool HasUriScheme(IntPtr file, NonNullableUtf8StringHandle uriScheme)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

uriScheme NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Hash(IntPtr)

Calls native method g_file_hash.

public static extern uint Hash(IntPtr file)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

IsNative(IntPtr)

Calls native method g_file_is_native.

public static extern bool IsNative(IntPtr file)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

LoadBytes(IntPtr, IntPtr, out NullableUtf8StringOwnedHandle, out ErrorOwnedHandle)

Calls native method g_file_load_bytes. Version: 2.56

[Version("2.56")]
public static extern BytesOwnedHandle LoadBytes(IntPtr file, IntPtr cancellable, out NullableUtf8StringOwnedHandle etagOut, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

etagOut NullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: True

error ErrorOwnedHandle

Returns

BytesOwnedHandle

Transfer ownership: Full Nullable: False

LoadBytesAsync(IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_load_bytes_async. Version: 2.56

[Version("2.56")]
public static extern void LoadBytesAsync(IntPtr file, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

LoadBytesFinish(IntPtr, IntPtr, out NullableUtf8StringOwnedHandle, out ErrorOwnedHandle)

Calls native method g_file_load_bytes_finish. Version: 2.56

[Version("2.56")]
public static extern BytesOwnedHandle LoadBytesFinish(IntPtr file, IntPtr result, out NullableUtf8StringOwnedHandle etagOut, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

etagOut NullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: True

error ErrorOwnedHandle

Returns

BytesOwnedHandle

Transfer ownership: Full Nullable: False

LoadContents(IntPtr, IntPtr, out byte[], out nuint, out NullableUtf8StringOwnedHandle, out ErrorOwnedHandle)

Calls native method g_file_load_contents.

public static extern bool LoadContents(IntPtr file, IntPtr cancellable, out byte[] contents, out nuint length, out NullableUtf8StringOwnedHandle etagOut, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

contents byte[]

Transfer ownership: Full Nullable: False

length nuint

Transfer ownership: Full Nullable: False

etagOut NullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

LoadContentsAsync(IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_load_contents_async.

public static extern void LoadContentsAsync(IntPtr file, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

LoadContentsFinish(IntPtr, IntPtr, out byte[], out nuint, out NullableUtf8StringOwnedHandle, out ErrorOwnedHandle)

Calls native method g_file_load_contents_finish.

public static extern bool LoadContentsFinish(IntPtr file, IntPtr res, out byte[] contents, out nuint length, out NullableUtf8StringOwnedHandle etagOut, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

res IntPtr

Transfer ownership: None Nullable: False

contents byte[]

Transfer ownership: Full Nullable: False

length nuint

Transfer ownership: Full Nullable: False

etagOut NullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

LoadPartialContentsAsync(IntPtr, IntPtr, FileReadMoreCallback, AsyncReadyCallback, IntPtr)

Calls native method g_file_load_partial_contents_async.

public static extern void LoadPartialContentsAsync(IntPtr file, IntPtr cancellable, FileReadMoreCallback readMoreCallback, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

readMoreCallback FileReadMoreCallback

Transfer ownership: None Nullable: False

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

LoadPartialContentsFinish(IntPtr, IntPtr, out byte[], out nuint, out NullableUtf8StringOwnedHandle, out ErrorOwnedHandle)

Calls native method g_file_load_partial_contents_finish.

public static extern bool LoadPartialContentsFinish(IntPtr file, IntPtr res, out byte[] contents, out nuint length, out NullableUtf8StringOwnedHandle etagOut, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

res IntPtr

Transfer ownership: None Nullable: False

contents byte[]

Transfer ownership: Full Nullable: False

length nuint

Transfer ownership: Full Nullable: False

etagOut NullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

MakeDirectory(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_make_directory.

public static extern bool MakeDirectory(IntPtr file, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

MakeDirectoryAsync(IntPtr, int, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_make_directory_async. Version: 2.38

[Version("2.38")]
public static extern void MakeDirectoryAsync(IntPtr file, int ioPriority, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

ioPriority int

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

MakeDirectoryFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_make_directory_finish. Version: 2.38

[Version("2.38")]
public static extern bool MakeDirectoryFinish(IntPtr file, IntPtr result, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

MakeDirectoryWithParents(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_make_directory_with_parents. Version: 2.18

[Version("2.18")]
public static extern bool MakeDirectoryWithParents(IntPtr file, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

Calls native method g_file_make_symbolic_link.

public static extern bool MakeSymbolicLink(IntPtr file, NonNullablePlatformStringHandle symlinkValue, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

symlinkValue NonNullablePlatformStringHandle

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

MakeSymbolicLinkAsync(IntPtr, NonNullablePlatformStringHandle, int, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_make_symbolic_link_async. Version: 2.74

[Version("2.74")]
public static extern void MakeSymbolicLinkAsync(IntPtr file, NonNullablePlatformStringHandle symlinkValue, int ioPriority, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

symlinkValue NonNullablePlatformStringHandle

Transfer ownership: None Nullable: False

ioPriority int

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

MakeSymbolicLinkFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_make_symbolic_link_finish. Version: 2.74

[Version("2.74")]
public static extern bool MakeSymbolicLinkFinish(IntPtr file, IntPtr result, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

MeasureDiskUsage(IntPtr, FileMeasureFlags, IntPtr, FileMeasureProgressCallback, IntPtr, out ulong, out ulong, out ulong, out ErrorOwnedHandle)

Calls native method g_file_measure_disk_usage. Version: 2.38

[Version("2.38")]
public static extern bool MeasureDiskUsage(IntPtr file, FileMeasureFlags flags, IntPtr cancellable, FileMeasureProgressCallback progressCallback, IntPtr progressData, out ulong diskUsage, out ulong numDirs, out ulong numFiles, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

flags FileMeasureFlags

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

progressCallback FileMeasureProgressCallback

Transfer ownership: None Nullable: True

progressData IntPtr

Transfer ownership: None Nullable: True

diskUsage ulong

Transfer ownership: Full Nullable: False

numDirs ulong

Transfer ownership: Full Nullable: False

numFiles ulong

Transfer ownership: Full Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

MeasureDiskUsageAsync(IntPtr, FileMeasureFlags, int, IntPtr, FileMeasureProgressCallback, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_measure_disk_usage_async. Version: 2.38

[Version("2.38")]
public static extern void MeasureDiskUsageAsync(IntPtr file, FileMeasureFlags flags, int ioPriority, IntPtr cancellable, FileMeasureProgressCallback progressCallback, IntPtr progressData, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

flags FileMeasureFlags

Transfer ownership: None Nullable: False

ioPriority int

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

progressCallback FileMeasureProgressCallback

Transfer ownership: None Nullable: True

progressData IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

MeasureDiskUsageFinish(IntPtr, IntPtr, out ulong, out ulong, out ulong, out ErrorOwnedHandle)

Calls native method g_file_measure_disk_usage_finish. Version: 2.38

[Version("2.38")]
public static extern bool MeasureDiskUsageFinish(IntPtr file, IntPtr result, out ulong diskUsage, out ulong numDirs, out ulong numFiles, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

diskUsage ulong

Transfer ownership: Full Nullable: False

numDirs ulong

Transfer ownership: Full Nullable: False

numFiles ulong

Transfer ownership: Full Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

Monitor(IntPtr, FileMonitorFlags, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_monitor. Version: 2.18

[Version("2.18")]
public static extern IntPtr Monitor(IntPtr file, FileMonitorFlags flags, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

flags FileMonitorFlags

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

MonitorDirectory(IntPtr, FileMonitorFlags, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_monitor_directory.

public static extern IntPtr MonitorDirectory(IntPtr file, FileMonitorFlags flags, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

flags FileMonitorFlags

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

MonitorFile(IntPtr, FileMonitorFlags, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_monitor_file.

public static extern IntPtr MonitorFile(IntPtr file, FileMonitorFlags flags, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

flags FileMonitorFlags

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

MountEnclosingVolume(IntPtr, MountMountFlags, IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_mount_enclosing_volume.

public static extern void MountEnclosingVolume(IntPtr location, MountMountFlags flags, IntPtr mountOperation, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

location IntPtr

Transfer ownership: None Nullable: False

flags MountMountFlags

Transfer ownership: None Nullable: False

mountOperation IntPtr

Transfer ownership: None Nullable: True

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

MountEnclosingVolumeFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_mount_enclosing_volume_finish.

public static extern bool MountEnclosingVolumeFinish(IntPtr location, IntPtr result, out ErrorOwnedHandle error)

Parameters

location IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

MountMountable(IntPtr, MountMountFlags, IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_mount_mountable.

public static extern void MountMountable(IntPtr file, MountMountFlags flags, IntPtr mountOperation, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

flags MountMountFlags

Transfer ownership: None Nullable: False

mountOperation IntPtr

Transfer ownership: None Nullable: True

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

MountMountableFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_mount_mountable_finish.

public static extern IntPtr MountMountableFinish(IntPtr file, IntPtr result, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

Move(IntPtr, IntPtr, FileCopyFlags, IntPtr, FileProgressCallback, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_move.

public static extern bool Move(IntPtr source, IntPtr destination, FileCopyFlags flags, IntPtr cancellable, FileProgressCallback progressCallback, IntPtr progressCallbackData, out ErrorOwnedHandle error)

Parameters

source IntPtr

Transfer ownership: None Nullable: False

destination IntPtr

Transfer ownership: None Nullable: False

flags FileCopyFlags

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

progressCallback FileProgressCallback

Transfer ownership: None Nullable: True

progressCallbackData IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

MoveAsync(IntPtr, IntPtr, FileCopyFlags, int, IntPtr, FileProgressCallback, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_move_async. Version: 2.72

[Version("2.72")]
public static extern void MoveAsync(IntPtr source, IntPtr destination, FileCopyFlags flags, int ioPriority, IntPtr cancellable, FileProgressCallback progressCallback, IntPtr progressCallbackData, AsyncReadyCallback callback, IntPtr userData)

Parameters

source IntPtr

Transfer ownership: None Nullable: False

destination IntPtr

Transfer ownership: None Nullable: False

flags FileCopyFlags

Transfer ownership: None Nullable: False

ioPriority int

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

progressCallback FileProgressCallback

Transfer ownership: None Nullable: True

progressCallbackData IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

MoveFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_move_finish. Version: 2.72

[Version("2.72")]
public static extern bool MoveFinish(IntPtr file, IntPtr result, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

NewBuildFilenamev(PlatformStringArrayNullTerminatedHandle)

Calls native function g_file_new_build_filenamev. Version: 2.78

[Version("2.78")]
public static extern IntPtr NewBuildFilenamev(PlatformStringArrayNullTerminatedHandle args)

Parameters

args PlatformStringArrayNullTerminatedHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewForCommandlineArg(NonNullablePlatformStringHandle)

Calls native function g_file_new_for_commandline_arg.

public static extern IntPtr NewForCommandlineArg(NonNullablePlatformStringHandle arg)

Parameters

arg NonNullablePlatformStringHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewForCommandlineArgAndCwd(NonNullablePlatformStringHandle, NonNullablePlatformStringHandle)

Calls native function g_file_new_for_commandline_arg_and_cwd. Version: 2.36

[Version("2.36")]
public static extern IntPtr NewForCommandlineArgAndCwd(NonNullablePlatformStringHandle arg, NonNullablePlatformStringHandle cwd)

Parameters

arg NonNullablePlatformStringHandle

Transfer ownership: None Nullable: False

cwd NonNullablePlatformStringHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewForPath(NonNullablePlatformStringHandle)

Calls native function g_file_new_for_path.

public static extern IntPtr NewForPath(NonNullablePlatformStringHandle path)

Parameters

path NonNullablePlatformStringHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewForUri(NonNullableUtf8StringHandle)

Calls native function g_file_new_for_uri.

public static extern IntPtr NewForUri(NonNullableUtf8StringHandle uri)

Parameters

uri NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewTmp(NullablePlatformStringHandle, out IntPtr, out ErrorOwnedHandle)

Calls native function g_file_new_tmp. Version: 2.32

[Version("2.32")]
public static extern IntPtr NewTmp(NullablePlatformStringHandle tmpl, out IntPtr iostream, out ErrorOwnedHandle error)

Parameters

tmpl NullablePlatformStringHandle

Transfer ownership: None Nullable: True

iostream IntPtr

Transfer ownership: Full Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewTmpAsync(NullablePlatformStringHandle, int, IntPtr, AsyncReadyCallback, IntPtr)

Calls native function g_file_new_tmp_async. Version: 2.74

[Version("2.74")]
public static extern void NewTmpAsync(NullablePlatformStringHandle tmpl, int ioPriority, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

tmpl NullablePlatformStringHandle

Transfer ownership: None Nullable: True

ioPriority int

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

NewTmpDirAsync(NullablePlatformStringHandle, int, IntPtr, AsyncReadyCallback, IntPtr)

Calls native function g_file_new_tmp_dir_async. Version: 2.74

[Version("2.74")]
public static extern void NewTmpDirAsync(NullablePlatformStringHandle tmpl, int ioPriority, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

tmpl NullablePlatformStringHandle

Transfer ownership: None Nullable: True

ioPriority int

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

NewTmpDirFinish(IntPtr, out ErrorOwnedHandle)

Calls native function g_file_new_tmp_dir_finish. Version: 2.74

[Version("2.74")]
public static extern IntPtr NewTmpDirFinish(IntPtr result, out ErrorOwnedHandle error)

Parameters

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewTmpFinish(IntPtr, out IntPtr, out ErrorOwnedHandle)

Calls native function g_file_new_tmp_finish. Version: 2.74

[Version("2.74")]
public static extern IntPtr NewTmpFinish(IntPtr result, out IntPtr iostream, out ErrorOwnedHandle error)

Parameters

result IntPtr

Transfer ownership: None Nullable: False

iostream IntPtr

Transfer ownership: Full Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

OpenReadwrite(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_open_readwrite. Version: 2.22

[Version("2.22")]
public static extern IntPtr OpenReadwrite(IntPtr file, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

OpenReadwriteAsync(IntPtr, int, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_open_readwrite_async. Version: 2.22

[Version("2.22")]
public static extern void OpenReadwriteAsync(IntPtr file, int ioPriority, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

ioPriority int

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

OpenReadwriteFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_open_readwrite_finish. Version: 2.22

[Version("2.22")]
public static extern IntPtr OpenReadwriteFinish(IntPtr file, IntPtr res, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

res IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

ParseName(NonNullableUtf8StringHandle)

Calls native function g_file_parse_name.

public static extern IntPtr ParseName(NonNullableUtf8StringHandle parseName)

Parameters

parseName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

PeekPath(IntPtr)

Calls native method g_file_peek_path. Version: 2.56

[Version("2.56")]
public static extern NullablePlatformStringUnownedHandle PeekPath(IntPtr file)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

Returns

NullablePlatformStringUnownedHandle

Transfer ownership: None Nullable: True

PollMountable(IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_poll_mountable. Version: 2.22

[Version("2.22")]
public static extern void PollMountable(IntPtr file, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

PollMountableFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_poll_mountable_finish. Version: 2.22

[Version("2.22")]
public static extern bool PollMountableFinish(IntPtr file, IntPtr result, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

QueryDefaultHandler(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_query_default_handler.

public static extern IntPtr QueryDefaultHandler(IntPtr file, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

QueryDefaultHandlerAsync(IntPtr, int, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_query_default_handler_async. Version: 2.60

[Version("2.60")]
public static extern void QueryDefaultHandlerAsync(IntPtr file, int ioPriority, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

ioPriority int

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

QueryDefaultHandlerFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_query_default_handler_finish. Version: 2.60

[Version("2.60")]
public static extern IntPtr QueryDefaultHandlerFinish(IntPtr file, IntPtr result, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

QueryExists(IntPtr, IntPtr)

Calls native method g_file_query_exists.

public static extern bool QueryExists(IntPtr file, IntPtr cancellable)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

Returns

bool

Transfer ownership: None Nullable: False

QueryFileType(IntPtr, FileQueryInfoFlags, IntPtr)

Calls native method g_file_query_file_type. Version: 2.18

[Version("2.18")]
public static extern FileType QueryFileType(IntPtr file, FileQueryInfoFlags flags, IntPtr cancellable)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

flags FileQueryInfoFlags

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

Returns

FileType

Transfer ownership: None Nullable: False

QueryFilesystemInfo(IntPtr, NonNullableUtf8StringHandle, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_query_filesystem_info.

public static extern IntPtr QueryFilesystemInfo(IntPtr file, NonNullableUtf8StringHandle attributes, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

attributes NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

QueryFilesystemInfoAsync(IntPtr, NonNullableUtf8StringHandle, int, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_query_filesystem_info_async.

public static extern void QueryFilesystemInfoAsync(IntPtr file, NonNullableUtf8StringHandle attributes, int ioPriority, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

attributes NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

ioPriority int

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

QueryFilesystemInfoFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_query_filesystem_info_finish.

public static extern IntPtr QueryFilesystemInfoFinish(IntPtr file, IntPtr res, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

res IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

QueryInfo(IntPtr, NonNullableUtf8StringHandle, FileQueryInfoFlags, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_query_info.

public static extern IntPtr QueryInfo(IntPtr file, NonNullableUtf8StringHandle attributes, FileQueryInfoFlags flags, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

attributes NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

flags FileQueryInfoFlags

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

QueryInfoAsync(IntPtr, NonNullableUtf8StringHandle, FileQueryInfoFlags, int, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_query_info_async.

public static extern void QueryInfoAsync(IntPtr file, NonNullableUtf8StringHandle attributes, FileQueryInfoFlags flags, int ioPriority, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

attributes NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

flags FileQueryInfoFlags

Transfer ownership: None Nullable: False

ioPriority int

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

QueryInfoFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_query_info_finish.

public static extern IntPtr QueryInfoFinish(IntPtr file, IntPtr res, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

res IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

QuerySettableAttributes(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_query_settable_attributes.

public static extern FileAttributeInfoListOwnedHandle QuerySettableAttributes(IntPtr file, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

FileAttributeInfoListOwnedHandle

Transfer ownership: Full Nullable: False

QueryWritableNamespaces(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_query_writable_namespaces.

public static extern FileAttributeInfoListOwnedHandle QueryWritableNamespaces(IntPtr file, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

FileAttributeInfoListOwnedHandle

Transfer ownership: Full Nullable: False

Read(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_read.

public static extern IntPtr Read(IntPtr file, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

ReadAsync(IntPtr, int, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_read_async.

public static extern void ReadAsync(IntPtr file, int ioPriority, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

ioPriority int

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

ReadFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_read_finish.

public static extern IntPtr ReadFinish(IntPtr file, IntPtr res, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

res IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

Replace(IntPtr, NullableUtf8StringHandle, bool, FileCreateFlags, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_replace.

public static extern IntPtr Replace(IntPtr file, NullableUtf8StringHandle etag, bool makeBackup, FileCreateFlags flags, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

etag NullableUtf8StringHandle

Transfer ownership: None Nullable: True

makeBackup bool

Transfer ownership: None Nullable: False

flags FileCreateFlags

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

ReplaceAsync(IntPtr, NullableUtf8StringHandle, bool, FileCreateFlags, int, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_replace_async.

public static extern void ReplaceAsync(IntPtr file, NullableUtf8StringHandle etag, bool makeBackup, FileCreateFlags flags, int ioPriority, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

etag NullableUtf8StringHandle

Transfer ownership: None Nullable: True

makeBackup bool

Transfer ownership: None Nullable: False

flags FileCreateFlags

Transfer ownership: None Nullable: False

ioPriority int

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

ReplaceContents(IntPtr, ref byte, nuint, NullableUtf8StringHandle, bool, FileCreateFlags, out NullableUtf8StringOwnedHandle, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_replace_contents.

public static extern bool ReplaceContents(IntPtr file, ref byte contents, nuint length, NullableUtf8StringHandle etag, bool makeBackup, FileCreateFlags flags, out NullableUtf8StringOwnedHandle newEtag, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

contents byte

Transfer ownership: None Nullable: False

length nuint

Transfer ownership: None Nullable: False

etag NullableUtf8StringHandle

Transfer ownership: None Nullable: True

makeBackup bool

Transfer ownership: None Nullable: False

flags FileCreateFlags

Transfer ownership: None Nullable: False

newEtag NullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: True

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

ReplaceContentsAsync(IntPtr, ref byte, nuint, NullableUtf8StringHandle, bool, FileCreateFlags, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_replace_contents_async.

public static extern void ReplaceContentsAsync(IntPtr file, ref byte contents, nuint length, NullableUtf8StringHandle etag, bool makeBackup, FileCreateFlags flags, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

contents byte

Transfer ownership: None Nullable: False

length nuint

Transfer ownership: None Nullable: False

etag NullableUtf8StringHandle

Transfer ownership: None Nullable: True

makeBackup bool

Transfer ownership: None Nullable: False

flags FileCreateFlags

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

ReplaceContentsBytesAsync(IntPtr, BytesHandle, NullableUtf8StringHandle, bool, FileCreateFlags, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_replace_contents_bytes_async. Version: 2.40

[Version("2.40")]
public static extern void ReplaceContentsBytesAsync(IntPtr file, BytesHandle contents, NullableUtf8StringHandle etag, bool makeBackup, FileCreateFlags flags, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

contents BytesHandle

Transfer ownership: None Nullable: False

etag NullableUtf8StringHandle

Transfer ownership: None Nullable: True

makeBackup bool

Transfer ownership: None Nullable: False

flags FileCreateFlags

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

ReplaceContentsFinish(IntPtr, IntPtr, out NullableUtf8StringOwnedHandle, out ErrorOwnedHandle)

Calls native method g_file_replace_contents_finish.

public static extern bool ReplaceContentsFinish(IntPtr file, IntPtr res, out NullableUtf8StringOwnedHandle newEtag, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

res IntPtr

Transfer ownership: None Nullable: False

newEtag NullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

ReplaceFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_replace_finish.

public static extern IntPtr ReplaceFinish(IntPtr file, IntPtr res, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

res IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

ReplaceReadwrite(IntPtr, NullableUtf8StringHandle, bool, FileCreateFlags, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_replace_readwrite. Version: 2.22

[Version("2.22")]
public static extern IntPtr ReplaceReadwrite(IntPtr file, NullableUtf8StringHandle etag, bool makeBackup, FileCreateFlags flags, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

etag NullableUtf8StringHandle

Transfer ownership: None Nullable: True

makeBackup bool

Transfer ownership: None Nullable: False

flags FileCreateFlags

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

ReplaceReadwriteAsync(IntPtr, NullableUtf8StringHandle, bool, FileCreateFlags, int, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_replace_readwrite_async. Version: 2.22

[Version("2.22")]
public static extern void ReplaceReadwriteAsync(IntPtr file, NullableUtf8StringHandle etag, bool makeBackup, FileCreateFlags flags, int ioPriority, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

etag NullableUtf8StringHandle

Transfer ownership: None Nullable: True

makeBackup bool

Transfer ownership: None Nullable: False

flags FileCreateFlags

Transfer ownership: None Nullable: False

ioPriority int

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

ReplaceReadwriteFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_replace_readwrite_finish. Version: 2.22

[Version("2.22")]
public static extern IntPtr ReplaceReadwriteFinish(IntPtr file, IntPtr res, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

res IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

ResolveRelativePath(IntPtr, NonNullablePlatformStringHandle)

Calls native method g_file_resolve_relative_path.

public static extern IntPtr ResolveRelativePath(IntPtr file, NonNullablePlatformStringHandle relativePath)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

relativePath NonNullablePlatformStringHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

SetAttribute(IntPtr, NonNullableUtf8StringHandle, FileAttributeType, IntPtr, FileQueryInfoFlags, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_set_attribute.

public static extern bool SetAttribute(IntPtr file, NonNullableUtf8StringHandle attribute, FileAttributeType type, IntPtr valueP, FileQueryInfoFlags flags, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

attribute NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

type FileAttributeType

Transfer ownership: None Nullable: False

valueP IntPtr

Transfer ownership: None Nullable: True

flags FileQueryInfoFlags

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

SetAttributeByteString(IntPtr, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, FileQueryInfoFlags, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_set_attribute_byte_string.

public static extern bool SetAttributeByteString(IntPtr file, NonNullableUtf8StringHandle attribute, NonNullableUtf8StringHandle value, FileQueryInfoFlags flags, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

attribute NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

value NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

flags FileQueryInfoFlags

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

SetAttributeInt32(IntPtr, NonNullableUtf8StringHandle, int, FileQueryInfoFlags, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_set_attribute_int32.

public static extern bool SetAttributeInt32(IntPtr file, NonNullableUtf8StringHandle attribute, int value, FileQueryInfoFlags flags, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

attribute NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

value int

Transfer ownership: None Nullable: False

flags FileQueryInfoFlags

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

SetAttributeInt64(IntPtr, NonNullableUtf8StringHandle, long, FileQueryInfoFlags, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_set_attribute_int64.

public static extern bool SetAttributeInt64(IntPtr file, NonNullableUtf8StringHandle attribute, long value, FileQueryInfoFlags flags, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

attribute NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

value long

Transfer ownership: None Nullable: False

flags FileQueryInfoFlags

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

SetAttributeString(IntPtr, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, FileQueryInfoFlags, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_set_attribute_string.

public static extern bool SetAttributeString(IntPtr file, NonNullableUtf8StringHandle attribute, NonNullableUtf8StringHandle value, FileQueryInfoFlags flags, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

attribute NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

value NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

flags FileQueryInfoFlags

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

SetAttributeUint32(IntPtr, NonNullableUtf8StringHandle, uint, FileQueryInfoFlags, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_set_attribute_uint32.

public static extern bool SetAttributeUint32(IntPtr file, NonNullableUtf8StringHandle attribute, uint value, FileQueryInfoFlags flags, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

attribute NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

value uint

Transfer ownership: None Nullable: False

flags FileQueryInfoFlags

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

SetAttributeUint64(IntPtr, NonNullableUtf8StringHandle, ulong, FileQueryInfoFlags, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_set_attribute_uint64.

public static extern bool SetAttributeUint64(IntPtr file, NonNullableUtf8StringHandle attribute, ulong value, FileQueryInfoFlags flags, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

attribute NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

value ulong

Transfer ownership: None Nullable: False

flags FileQueryInfoFlags

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

SetAttributesAsync(IntPtr, IntPtr, FileQueryInfoFlags, int, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_set_attributes_async.

public static extern void SetAttributesAsync(IntPtr file, IntPtr info, FileQueryInfoFlags flags, int ioPriority, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

info IntPtr

Transfer ownership: None Nullable: False

flags FileQueryInfoFlags

Transfer ownership: None Nullable: False

ioPriority int

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

SetAttributesFinish(IntPtr, IntPtr, out IntPtr, out ErrorOwnedHandle)

Calls native method g_file_set_attributes_finish.

public static extern bool SetAttributesFinish(IntPtr file, IntPtr result, out IntPtr info, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

info IntPtr

Transfer ownership: Full Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

SetAttributesFromInfo(IntPtr, IntPtr, FileQueryInfoFlags, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_set_attributes_from_info.

public static extern bool SetAttributesFromInfo(IntPtr file, IntPtr info, FileQueryInfoFlags flags, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

info IntPtr

Transfer ownership: None Nullable: False

flags FileQueryInfoFlags

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

SetDisplayName(IntPtr, NonNullableUtf8StringHandle, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_set_display_name.

public static extern IntPtr SetDisplayName(IntPtr file, NonNullableUtf8StringHandle displayName, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

displayName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

SetDisplayNameAsync(IntPtr, NonNullableUtf8StringHandle, int, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_set_display_name_async.

public static extern void SetDisplayNameAsync(IntPtr file, NonNullableUtf8StringHandle displayName, int ioPriority, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

displayName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

ioPriority int

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

SetDisplayNameFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_set_display_name_finish.

public static extern IntPtr SetDisplayNameFinish(IntPtr file, IntPtr res, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

res IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

StartMountable(IntPtr, DriveStartFlags, IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_start_mountable. Version: 2.22

[Version("2.22")]
public static extern void StartMountable(IntPtr file, DriveStartFlags flags, IntPtr startOperation, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

flags DriveStartFlags

Transfer ownership: None Nullable: False

startOperation IntPtr

Transfer ownership: None Nullable: True

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

StartMountableFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_start_mountable_finish. Version: 2.22

[Version("2.22")]
public static extern bool StartMountableFinish(IntPtr file, IntPtr result, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

StopMountable(IntPtr, MountUnmountFlags, IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_stop_mountable. Version: 2.22

[Version("2.22")]
public static extern void StopMountable(IntPtr file, MountUnmountFlags flags, IntPtr mountOperation, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

flags MountUnmountFlags

Transfer ownership: None Nullable: False

mountOperation IntPtr

Transfer ownership: None Nullable: True

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

StopMountableFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_stop_mountable_finish. Version: 2.22

[Version("2.22")]
public static extern bool StopMountableFinish(IntPtr file, IntPtr result, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

SupportsThreadContexts(IntPtr)

Calls native method g_file_supports_thread_contexts. Version: 2.22

[Version("2.22")]
public static extern bool SupportsThreadContexts(IntPtr file)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Trash(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_trash.

public static extern bool Trash(IntPtr file, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

TrashAsync(IntPtr, int, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_trash_async. Version: 2.38

[Version("2.38")]
public static extern void TrashAsync(IntPtr file, int ioPriority, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

ioPriority int

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

TrashFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_trash_finish. Version: 2.38

[Version("2.38")]
public static extern bool TrashFinish(IntPtr file, IntPtr result, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

UnmountMountable(IntPtr, MountUnmountFlags, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_unmount_mountable.

public static extern void UnmountMountable(IntPtr file, MountUnmountFlags flags, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

flags MountUnmountFlags

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

UnmountMountableFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_unmount_mountable_finish.

public static extern bool UnmountMountableFinish(IntPtr file, IntPtr result, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

UnmountMountableWithOperation(IntPtr, MountUnmountFlags, IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_file_unmount_mountable_with_operation. Version: 2.22

[Version("2.22")]
public static extern void UnmountMountableWithOperation(IntPtr file, MountUnmountFlags flags, IntPtr mountOperation, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

flags MountUnmountFlags

Transfer ownership: None Nullable: False

mountOperation IntPtr

Transfer ownership: None Nullable: True

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

UnmountMountableWithOperationFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_file_unmount_mountable_with_operation_finish. Version: 2.22

[Version("2.22")]
public static extern bool UnmountMountableWithOperationFinish(IntPtr file, IntPtr result, out ErrorOwnedHandle error)

Parameters

file IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False