Foundation.NSFileWrapper Members

The members of Foundation.NSFileWrapper are listed below.

See Also: Inherited members from Foundation.NSObject

Public Constructors

Default constructor, initializes a new instance of this class.
A constructor that initializes the object from the data stored in the unarchiver object.
Documentation for this section has not yet been entered.
Documentation for this section has not yet been entered.
Documentation for this section has not yet been entered.
Documentation for this section has not yet been entered.

Protected Constructors

Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

[read-only]
override
ClassHandleIntPtr. The handle for this class.
FileAttributesNSDictionary. The file attributes of this file.
Filenamestring. The filename of this file.
[read-only]
FileWrappersNSDictionary. Returns the child NSFileWrappers of a directory file wrapper. If this is not a directory file wrapper, throws an exception.
[read-only]
IsDirectorybool. Whether this is a directory file wrapper.
[read-only]
IsRegularFilebool. Whether this is a regular file wrapper.
[read-only]
IsSymbolicLinkbool. Whether this is a file wrapper for a symbolic link.
PreferredFilenamestring. The preferred filename for this (normally used for dictionary keys in a directory NSFileWrapper).
[read-only]
SymbolicLinkDestinationURLNSUrl. The URL reference by this. If this is not a symbolic link file wrapper, throws an exception.

Public Methods

AddFileWrapper(NSFileWrapper) : string
Adds a child NSFileWrapper to this. If this is not a directory file wrapper, throws an exception.
AddRegularFile(NSData, string) : string
Adds a child regular file to this with the specified dataContents. If this is not a directory file wrapper, throws an exception.
EncodeTo(NSCoder)
Encodes the state of the object on the provided encoder
GetRegularFileContents() : NSData
Retrieves the contents of this as NSData. If this is not a regular file wrapper, throws an exception.
GetSerializedRepresentation() : NSData
The contents of this as an opaque collection of data.
KeyForFileWrapper(NSFileWrapper) : string
The dictionary key used by this directory file wrapper to identify the specified child. Returns null if the child is not present. If this is not a directory file wrapper, throws an exception.
MatchesContentsOfURL(NSUrl) : bool
Whether this is the same (based on file modification dates, not contents) as the specified url.
Read(NSUrl, NSFileWrapperReadingOptions, out NSError) : bool
Recursively reads the the entire contents of this. Returns true if successful.
RemoveFileWrapper(NSFileWrapper)
Removes the specified child file wrapper. If this is not a directory file wrapper, throws an exception.
Write(NSUrl, NSFileWrapperWritingOptions, NSUrl, out NSError) : bool
Recursively writes the entire contents of this to the specified URL. Returns true if successful.

Protected Methods

override
Dispose(bool)
Releases the resources used by the NSFileWrapper object.