Foundation.NSFileVersion: Method Members

The methods of Foundation.NSFileVersion are listed below. For a list of all members, see the NSFileVersion Members list.

See Also: Inherited members from Foundation.NSObject

Public Methods

static
GetCurrentVersion(NSUrl) : NSFileVersion
The most recent version object for the file at URL. Returns null if the file does not exist.
static
GetOtherVersions(NSUrl) : NSFileVersion[]
All versions except the current version of the file at the specified URL. Returns null if the file does not exist.
static
GetSpecificVersion(NSUrl, NSObject) : NSFileVersion
The NSFileVersion of the file at URL with the specified persistentIdentifier. Returns null if the file or persistentIdentifier does not exist.
static
GetUnresolvedConflictVersions(NSUrl) : NSFileVersion[]
An array of NSFileVersion objects that are currently in conflict. Returns null if the file does not exist.
Remove(out NSError) : bool
Removes this version and its associated file from the version store. Returns true if the removal was successful.
static
RemoveOtherVersions(NSUrl, out NSError) : bool
Removes all versions except this one from the version store. Returns true if the removal was successful.
ReplaceItem(NSUrl, NSFileVersionReplacingOptions, out NSError) : NSUrl
Replaces the file at the specified URL with the contents of the current version's file. The file is created, if necessary.

Protected Methods

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