gnome-vfs-sharp[00 24 00 00 04 80 00 00 94 00 00 00 06 02 00 00 00 24 00 00 52 53 41 31 00 04 00 00 01 00 01 00 71 EB 6C 55 75 52 9C BF 72 44 F7 A6 EA 05 62 84 F9 EA E0 3B CF F2 CC 13 2C 9C 49 0A B3 09 EA B0 B5 6B CE 44 9D F5 03 D9 C0 A8 1E 52 05 85 CD BE 70 E2 FB 90 43 4B AC 04 FA 62 22 A8 00 98 B7 A1 A7 B3 AF 99 1A 41 23 24 BB 43 25 F6 B8 65 BB 64 EB F6 D1 C2 06 D5 73 2D DF BC 70 A7 38 9E E5 3E 0C 24 6E 32 79 74 1A D0 05 03 E4 98 42 E1 9B F3 7B 19 8B 40 21 26 CB 36 89 C2 EA 64 96 A4 7C B4]2.20.0.0Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details.Abstraction for Removable devices.
The VolumeMonitor offers a simple way to get removable devices: name, icon, type, etc and operations: Eject, Mount, Unmount and others.
In order to use, you need to execute the static method . This method give you a pointer to VolumeMonitor, this is a singleton, which means that it will exists and be valid until
// This example show how to get all connected drives
using System;
using Gnome.Vfs;
namespace TestGnomeVFS
{
public class Test()
{
public static void Main()
{
Vfs.Initialize();
VolumeMonitor vMonitor = VolumeMonitor.Get();
Drive[] drv = vMonitor.ConnectedDrives;
foreach Drive d in drv) {
Console.WriteLine(d.DisplayName);
}
Vfs.Shutdown();
}
}
}
GLib.ObjectMethodGnome.Vfs.VolumeMonitorReturns a pointer to the VolumeMonitor singleton. VolumeMonitor is a singleton, this means it is guaranteed to exist and be valid until is called.a To be addedMethodSystem.VoidDefault handler for the event.
a Override this method in a subclass to provide a default handler for the event.MethodSystem.VoidDefault handler for the event.
a Override this method in a subclass to provide a default handler for the event.MethodSystem.VoidDefault handler for the event.
a Override this method in a subclass to provide a default handler for the event.MethodSystem.VoidDefault handler for the event.
a Override this method in a subclass to provide a default handler for the event.MethodSystem.VoidDefault handler for the event.
a Override this method in a subclass to provide a default handler for the event.MethodGnome.Vfs.VolumeLooks for a which contains .
a a To be addedMethodGnome.Vfs.DriveLooks for a whose id is .
a a To be addedMethodGnome.Vfs.VolumeLooks for a whose id is .
a a To be addedConstructorProtected Constructor.
a Chain to this constructor if you have manually registered a native value for your subclass.System.ObsoleteConstructorInternal constructor
a This is not typically used by C# code.ConstructorTo be addedTo be addedPropertyGLib.GTypeGType Property.a Returns the native value for .EventGnome.Vfs.VolumePreUnmountHandlera is about to be unmounted.To be addedGLib.Signal("volume_pre_unmount")EventGnome.Vfs.DriveDisconnectedHandlera was disconnected.To be addedGLib.Signal("drive_disconnected")EventGnome.Vfs.VolumeUnmountedHandlera was unmounted.To be addedGLib.Signal("volume_unmounted")EventGnome.Vfs.DriveConnectedHandlera new was connected.To be addedGLib.Signal("drive_connected")EventGnome.Vfs.VolumeMountedHandlera was mounted.To be addedGLib.Signal("volume_mounted")PropertyGnome.Vfs.Drive[]Returns an array of connected s.a To be addedPropertyGnome.Vfs.Volume[]Returns an array of mounted s.a To be added