Düzenle

Aracılığıyla paylaş


NSFileManager.GetSkipBackupAttribute Method

Definition

Overloads

GetSkipBackupAttribute(String, NSError)

Returns the status of the SkipBackup to iCloud attribute is set on the file.

GetSkipBackupAttribute(String)

Returns the status of the SkipBackup to iCloud attribute is set on the file.

GetSkipBackupAttribute(String, NSError)

Returns the status of the SkipBackup to iCloud attribute is set on the file.

public static bool GetSkipBackupAttribute (string filename, out Foundation.NSError error);
static member GetSkipBackupAttribute : string *  -> bool

Parameters

filename
String

Path of the file to probe.

error
NSError

The error will be set to null if there was no error, or it will point to an instance of NSError if there was a problem.

Returns

true if the extended attribute is set.

Remarks

This returns true if the file is marked not to be backed up by iCloud, otherwise it will return false. This high-level API automagically adjust itself based on the version of iOS being executed. On iOS 5.0.1 (only) it will use the old getxattr API to get the value of the "com.apple.MobileBackup" attribute. On iOS 5.1 (and later) it will use NSUrlIsExcludedFromBackupKey to accomplish the same.

Applies to

GetSkipBackupAttribute(String)

Returns the status of the SkipBackup to iCloud attribute is set on the file.

public static bool GetSkipBackupAttribute (string filename);
static member GetSkipBackupAttribute : string -> bool

Parameters

filename
String

Path of the file to probe.

Returns

true if the extended attribute is set.

Remarks

This returns true if the file is marked not to be backed up by iCloud, otherwise it will return false. This high-level API automagically adjust itself based on the version of iOS being executed. On iOS 5.0.1 (only) it will use the old getxattr API to get the value of the "com.apple.MobileBackup" attribute. On iOS 5.1 (and later) it will use NSUrlIsExcludedFromBackupKey to accomplish the same.

Applies to