Table of Contents

Class Mount

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

Methods

CanEject(IntPtr)

Calls native method g_mount_can_eject.

public static extern bool CanEject(IntPtr mount)

Parameters

mount IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

CanUnmount(IntPtr)

Calls native method g_mount_can_unmount.

public static extern bool CanUnmount(IntPtr mount)

Parameters

mount IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Eject(IntPtr, MountUnmountFlags, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_mount_eject.

public static extern void Eject(IntPtr mount, MountUnmountFlags flags, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

mount 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

EjectFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_mount_eject_finish.

public static extern bool EjectFinish(IntPtr mount, IntPtr result, out ErrorOwnedHandle error)

Parameters

mount IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

EjectWithOperation(IntPtr, MountUnmountFlags, IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_mount_eject_with_operation. Version: 2.22

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

Parameters

mount 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

EjectWithOperationFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_mount_eject_with_operation_finish. Version: 2.22

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

Parameters

mount IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

GetDefaultLocation(IntPtr)

Calls native method g_mount_get_default_location.

public static extern IntPtr GetDefaultLocation(IntPtr mount)

Parameters

mount IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

GetDrive(IntPtr)

Calls native method g_mount_get_drive.

public static extern IntPtr GetDrive(IntPtr mount)

Parameters

mount IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: True

GetGType()

Calls native function g_mount_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetIcon(IntPtr)

Calls native method g_mount_get_icon.

public static extern IntPtr GetIcon(IntPtr mount)

Parameters

mount IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

GetName(IntPtr)

Calls native method g_mount_get_name.

public static extern NonNullableUtf8StringOwnedHandle GetName(IntPtr mount)

Parameters

mount IntPtr

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: False

GetRoot(IntPtr)

Calls native method g_mount_get_root.

public static extern IntPtr GetRoot(IntPtr mount)

Parameters

mount IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

GetSortKey(IntPtr)

Calls native method g_mount_get_sort_key. Version: 2.32

[Version("2.32")]
public static extern NullableUtf8StringUnownedHandle GetSortKey(IntPtr mount)

Parameters

mount IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

GetSymbolicIcon(IntPtr)

Calls native method g_mount_get_symbolic_icon. Version: 2.34

[Version("2.34")]
public static extern IntPtr GetSymbolicIcon(IntPtr mount)

Parameters

mount IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

GetUuid(IntPtr)

Calls native method g_mount_get_uuid.

public static extern NullableUtf8StringOwnedHandle GetUuid(IntPtr mount)

Parameters

mount IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: True

GetVolume(IntPtr)

Calls native method g_mount_get_volume.

public static extern IntPtr GetVolume(IntPtr mount)

Parameters

mount IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: True

GuessContentType(IntPtr, bool, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_mount_guess_content_type. Version: 2.18

[Version("2.18")]
public static extern void GuessContentType(IntPtr mount, bool forceRescan, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

mount IntPtr

Transfer ownership: None Nullable: False

forceRescan bool

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

GuessContentTypeFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_mount_guess_content_type_finish. Version: 2.18

[Version("2.18")]
public static extern Utf8StringArrayNullTerminatedOwnedHandle GuessContentTypeFinish(IntPtr mount, IntPtr result, out ErrorOwnedHandle error)

Parameters

mount IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

Utf8StringArrayNullTerminatedOwnedHandle

Transfer ownership: Full Nullable: False

GuessContentTypeSync(IntPtr, bool, IntPtr, out ErrorOwnedHandle)

Calls native method g_mount_guess_content_type_sync. Version: 2.18

[Version("2.18")]
public static extern Utf8StringArrayNullTerminatedOwnedHandle GuessContentTypeSync(IntPtr mount, bool forceRescan, IntPtr cancellable, out ErrorOwnedHandle error)

Parameters

mount IntPtr

Transfer ownership: None Nullable: False

forceRescan bool

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

Utf8StringArrayNullTerminatedOwnedHandle

Transfer ownership: Full Nullable: False

IsShadowed(IntPtr)

Calls native method g_mount_is_shadowed. Version: 2.20

[Version("2.20")]
public static extern bool IsShadowed(IntPtr mount)

Parameters

mount IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Remount(IntPtr, MountMountFlags, IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_mount_remount.

public static extern void Remount(IntPtr mount, MountMountFlags flags, IntPtr mountOperation, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

mount 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

RemountFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_mount_remount_finish.

public static extern bool RemountFinish(IntPtr mount, IntPtr result, out ErrorOwnedHandle error)

Parameters

mount IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

Shadow(IntPtr)

Calls native method g_mount_shadow. Version: 2.20

[Version("2.20")]
public static extern void Shadow(IntPtr mount)

Parameters

mount IntPtr

Transfer ownership: None Nullable: False

Unmount(IntPtr, MountUnmountFlags, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_mount_unmount.

public static extern void Unmount(IntPtr mount, MountUnmountFlags flags, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

mount 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

UnmountFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_mount_unmount_finish.

public static extern bool UnmountFinish(IntPtr mount, IntPtr result, out ErrorOwnedHandle error)

Parameters

mount IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

UnmountWithOperation(IntPtr, MountUnmountFlags, IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method g_mount_unmount_with_operation. Version: 2.22

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

Parameters

mount 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

UnmountWithOperationFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method g_mount_unmount_with_operation_finish. Version: 2.22

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

Parameters

mount IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

Unshadow(IntPtr)

Calls native method g_mount_unshadow. Version: 2.20

[Version("2.20")]
public static extern void Unshadow(IntPtr mount)

Parameters

mount IntPtr

Transfer ownership: None Nullable: False