Mac Guides | Samples

MonoMac.Foundation.NSFileManager Class

See Also: NSFileManager

Syntax

[MonoMac.Foundation.Register("NSFileManager", true)]
public class NSFileManager : NSObject

Requirements

Namespace: MonoMac.Foundation
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0

The members of MonoMac.Foundation.NSFileManager are listed below.

See Also: NSObject

Public Constructors

Default constructor that initializes a new instance of this class with no parameters.
A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes when the derived class has an [Export] constructor.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

[read-only]
static
AppendOnlyNSString. Represents the value associated with the constant NSFileAppendOnly
[read-only]
static
BusyNSString. Represents the value associated with the constant NSFileBusy
[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
static
CreationDateNSString. Represents the value associated with the constant NSFileCreationDate
CurrentDirectoryString.
[read-only]
static
DefaultManagerNSFileManager.
DelegateNSFileManagerDelegate. An instance of the MonoMac.Foundation.NSFileManagerDelegate model class which acts as the class delegate.
[read-only]
static
DeviceIdentifierNSString. Represents the value associated with the constant NSFileDeviceIdentifier
[read-only]
static
ExtensionHiddenNSString. Represents the value associated with the constant NSFileExtensionHidden
[read-only]
static
GroupOwnerAccountIDNSString. Represents the value associated with the constant NSFileGroupOwnerAccountID
[read-only]
static
GroupOwnerAccountNameNSString. Represents the value associated with the constant NSFileGroupOwnerAccountName
[read-only]
static
HfsCreatorCodeNSString. Represents the value associated with the constant NSFileHFSCreatorCode
[read-only]
static
HfsTypeCodeNSString. Represents the value associated with the constant NSFileHFSTypeCode
[read-only]
static
ImmutableNSString. Represents the value associated with the constant NSFileImmutable
[read-only]
static
ModificationDateNSString. Represents the value associated with the constant NSFileModificationDate
[read-only]
static
NSFileTypeNSString. Represents the value associated with the constant NSFileType
[read-only]
static
OwnerAccountIDNSString. Represents the value associated with the constant NSFileOwnerAccountID
[read-only]
static
OwnerAccountNameNSString. Represents the value associated with the constant NSFileOwnerAccountName
[read-only]
static
PosixPermissionsNSString. Represents the value associated with the constant NSFilePosixPermissions
[read-only]
static
ReferenceCountNSString. Represents the value associated with the constant NSFileReferenceCount
[read-only]
static
SizeNSString. Represents the value associated with the constant NSFileSize
[read-only]
static
SystemFileNumberNSString. Represents the value associated with the constant NSFileSystemFileNumber
[read-only]
static
SystemFreeNodesNSString. Represents the value associated with the constant NSFileSystemFreeNodes
[read-only]
static
SystemFreeSizeNSString. Represents the value associated with the constant NSFileSystemFreeSize
[read-only]
static
SystemNodesNSString. Represents the value associated with the constant NSFileSystemNodes
[read-only]
static
SystemNumberNSString. Represents the value associated with the constant NSFileSystemNumber
[read-only]
static
SystemSizeNSString. Represents the value associated with the constant NSFileSystemSize
[read-only]
static
TypeBlockSpecialNSString. Represents the value associated with the constant NSFileTypeBlockSpecial
[read-only]
static
TypeCharacterSpecialNSString. Represents the value associated with the constant NSFileTypeCharacterSpecial
[read-only]
static
TypeDirectoryNSString. Represents the value associated with the constant NSFileTypeDirectory
[read-only]
static
TypeRegularNSString. Represents the value associated with the constant NSFileTypeRegular
[read-only]
static
TypeSocketNSString. Represents the value associated with the constant NSFileTypeSocket
[read-only]
static
TypeSymbolicLinkNSString. Represents the value associated with the constant NSFileTypeSymbolicLink
[read-only]
static
TypeUnknownNSString. Represents the value associated with the constant NSFileTypeUnknown
[read-only]
UbiquityIdentityTokenNSObject.
WeakDelegateNSObject. An object that can respond to the delegate protocol for this type

Public Methods

ComponentsToDisplay(String) : String[]
Contents(String) : NSData
ContentsEqual(String, String) : Boolean
Copy(NSUrl, NSUrl, out NSError) : Boolean
Copy(String, String, out NSError) : Boolean
CreateDirectory(String, Boolean, NSFileAttributes) : Boolean
CreateDirectory(NSUrl, Boolean, NSDictionary, out NSError) : Boolean
CreateDirectory(String, Boolean, NSDictionary, out NSError) : Boolean
CreateDirectory(String, Boolean, NSFileAttributes, out NSError) : Boolean
CreateFile(String, NSData, NSDictionary) : Boolean
CreateFile(String, NSData, NSFileAttributes) : Boolean
CreateSymbolicLink(NSUrl, NSUrl, out NSError) : Boolean
CreateSymbolicLink(String, String, out NSError) : Boolean
DisplayName(String) : String
EvictUbiquitous(NSUrl, out NSError) : Boolean
FileExists(String) : Boolean
FileExists(String, Boolean) : Boolean
GetAttributes(String) : NSFileAttributes
GetAttributes(String, out NSError) : NSFileAttributes
GetDirectoryContent(String, out NSError) : String[]
GetDirectoryContent(NSUrl, NSArray, NSDirectoryEnumerationOptions, out NSError) : NSUrl[]
GetDirectoryContentRecursive(String, out NSError) : String[]
GetEnumerator(String) : NSDirectoryEnumerator
GetEnumerator(NSUrl, NSArray, NSDirectoryEnumerationOptions, out NSError) : NSDirectoryEnumerator
GetFileSystemAttributes(String) : NSFileSystemAttributes
Returns the file system attributes for a given volume.
GetFileSystemAttributes(String, out NSError) : NSFileSystemAttributes
Returns the file system attributes for a given volume.
GetMountedVolumes(NSArray, NSVolumeEnumerationOptions) : NSUrl[]
GetSymbolicLinkDestination(String, out NSError) : String
GetUrl(NSSearchPathDirectory, NSSearchPathDomain, NSUrl, Boolean, out NSError) : NSUrl
GetUrlForPublishingUbiquitousItem(NSUrl, out NSDate, out NSError) : NSUrl
GetUrlForUbiquityContainer(String) : NSUrl
GetUrls(NSSearchPathDirectory, NSSearchPathDomain) : NSUrl[]
IsDeletableFile(String) : Boolean
IsExecutableFile(String) : Boolean
IsReadableFile(String) : Boolean
IsUbiquitous(NSUrl) : Boolean
IsWritableFile(String) : Boolean
Link(NSUrl, NSUrl, out NSError) : Boolean
Link(String, String, out NSError) : Boolean
Move(NSUrl, NSUrl, out NSError) : Boolean
Move(String, String, out NSError) : Boolean
Remove(NSUrl, out NSError) : Boolean
Remove(String, out NSError) : Boolean
Replace(NSUrl, NSUrl, String, NSFileManagerItemReplacementOptions, out NSUrl, out NSError) : Boolean
SetAttributes(NSFileAttributes, String) : Boolean
SetAttributes(NSDictionary, String, out NSError) : Boolean
SetAttributes(NSFileAttributes, String, out NSError) : Boolean
SetUbiquitous(Boolean, NSUrl, NSUrl, out NSError) : Boolean
StartDownloadingUbiquitous(NSUrl, out NSError) : Boolean
Subpaths(String) : String[]

Protected Methods

override
Dispose(Boolean)
Releases the resourced used by the NSFileManager object.