MonobjcMonobjc Documented Class Library
UnmountAndEjectDeviceAtURLError Method (url, error)
NamespacesMonobjc.AppKitNSWorkspaceUnmountAndEjectDeviceAtURLError(NSURL, NSError%)

Attempts to eject the volume mounted at the given path.

Original signature is '- (BOOL)unmountAndEjectDeviceAtURL:(NSURL *)url error:(NSError **)error'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool UnmountAndEjectDeviceAtURLError(
	NSURL url,
	out NSError error
)
Public Overridable Function UnmountAndEjectDeviceAtURLError ( _
	url As NSURL, _
	<OutAttribute> ByRef error As NSError _
) As Boolean
public:
virtual bool UnmountAndEjectDeviceAtURLError(
	NSURL^ url, 
	[OutAttribute] NSError^% error
)
Parameters
url (NSURL)
The URL of the volume to eject.
error (NSError%)
If the operation fails, this error contains more information about the failure.
Return Value
YES if the volume was unmounted and ejected successfully, otherwise NO, for example, if the volume is not ejectable.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)