Contents

isDiscardable

A Boolean value that specifies whether the system can delete the associated file at some future time.

Declaration

var isDiscardable: Bool { get set }

Discussion

Marking a file version as discardable gives the system the flexibility to reclaim the space, occupied by the associated file, at some future time. Do not, however, depend on the file being discarded.

After setting this property to true, do not set this property to false again. Doing so causes the system to raise an exception. In addition, if you set this property to true for the version of the file returned by the currentVersionOfItem(at:) method, the system raises an exception.

See Also

Related Documentation

Accessing the Version Information