Foundation.NSFileVersion Members

The members of Foundation.NSFileVersion are listed below.

See Also: Inherited members from Foundation.NSObject

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.
[read-only]
IsConflictbool. Whether this NSFileVersion is in conflict with another NSFileVersion. Read-only.
[read-only]
LocalizedNamestring. The user-meaningful name of this file version. Read-only.
[read-only]
LocalizedNameOfSavingComputerstring. The user-meaningful name of the computer on which this revision was saved. Read-only.
[read-only]
ModificationDateNSDate. The modification date of this version. Read-only.
[read-only]
PersistentIdentifierNSObject. The identifier for this version. Read-only.
Resolvedbool. True if this version is not in conflict with another version. App devs should not assign the value false to this property.
[read-only]
UrlNSUrl. The URL identifying the file associated with this version. Read-only.

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.