Class MountHelper
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public sealed class MountHelper : Object, Mount, NativeObject, IDisposable, InstanceFactory, GTypeProvider
- Inheritance
-
MountHelper
- Implements
- Inherited Members
Constructors
MountHelper(ObjectHandle)
public MountHelper(ObjectHandle handle)
Parameters
handleObjectHandle
Fields
ChangedSignal
Signal Descriptor for OnChanged.
public static readonly Signal<Mount> ChangedSignal
Field Value
PreUnmountSignal
Signal Descriptor for OnPreUnmount.
public static readonly Signal<Mount> PreUnmountSignal
Field Value
UnmountedSignal
Signal Descriptor for OnUnmounted.
public static readonly Signal<Mount> UnmountedSignal
Field Value
Methods
CanEject()
public bool CanEject()
Returns
CanUnmount()
public bool CanUnmount()
Returns
EjectFinish(AsyncResult)
public bool EjectFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
EjectWithOperationFinish(AsyncResult)
[Version("2.22")]
public bool EjectWithOperationFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
GetDefaultLocation()
public File GetDefaultLocation()
Returns
GetDrive()
public Drive? GetDrive()
Returns
GetGType()
public static Type GetGType()
Returns
GetIcon()
public Icon GetIcon()
Returns
GetName()
public string GetName()
Returns
GetRoot()
public File GetRoot()
Returns
GetSortKey()
[Version("2.32")]
public string? GetSortKey()
Returns
GetSymbolicIcon()
[Version("2.34")]
public Icon GetSymbolicIcon()
Returns
GetUuid()
public string? GetUuid()
Returns
GetVolume()
public Volume? GetVolume()
Returns
GuessContentTypeFinish(AsyncResult)
[Version("2.18")]
public string[] GuessContentTypeFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
- string[]
GuessContentTypeSync(bool, Cancellable?)
[Version("2.18")]
public string[] GuessContentTypeSync(bool forceRescan, Cancellable? cancellable)
Parameters
forceRescanboolcancellableCancellable
Returns
- string[]
IsShadowed()
[Version("2.20")]
public bool IsShadowed()
Returns
RemountFinish(AsyncResult)
public bool RemountFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
Shadow()
[Version("2.20")]
public void Shadow()
UnmountFinish(AsyncResult)
public bool UnmountFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
UnmountWithOperationFinish(AsyncResult)
[Version("2.22")]
public bool UnmountWithOperationFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
Unshadow()
[Version("2.20")]
public void Unshadow()
Events
OnChanged
public event SignalHandler<Mount> OnChanged
Event Type
OnPreUnmount
public event SignalHandler<Mount> OnPreUnmount
Event Type
OnUnmounted
public event SignalHandler<Mount> OnUnmounted