Type Property 型プロパティ

completeUnlessOpen

The file is stored in an encrypted format on disk after it is closed. ファイルは、暗号化された形式でディスク上にそれが閉じられる後に格納されます。

Declaration 宣言

static let completeUnlessOpen: FileProtectionType

Discussion 議論

Files with this type of protection can be created while the device is locked, but once closed, cannot be opened again until the device is unlocked. If the file is opened when unlocked, you may continue to access the file normally, even if the user locks the device. There is a small performance penalty when the file is created and opened, though not when being written to or read from. This can be mitigated by changing the file protection to complete when the device is unlocked. この型の保護をもつファイルは、デバイスがロックされている間に作成できます、しかし一旦閉じたならば、デバイスがアンロックされるまで再び開かれることはできません。アンロックされた時にファイルが開かれるならば、あなたはファイルに普通にアクセスを継続できるでしょう、たとえユーザがデバイスをロックするとしても。ファイルが作成および開かれる場合に、それへと書き込みまたはそれから読み出しする場合でないにもかかわらず、小さな性能代償があります。これは、デバイスがアンロックされる時に、ファイル保護をcompleteに変更することによって緩和できます。

See Also 参照

Working with Protection Levels 保護水準を取り扱う