CBFS Storage 2020 .NET Edition

Questions / Feedback?

IsCBFSStorageVault Method

Checks whether a local file is a CBFS Storage vault.

Syntax

public bool IsCBFSStorageVault();
Public Function IsCBFSStorageVault() As Boolean

Remarks

This method checks whether the file specified by the VaultFile property is a CBFS Storage vault that can be opened by the component. The file being checked must be fully closed when this method is called.

If the specified file is a CBFS Storage vault, this method returns true; otherwise it returns false.

If the CallbackMode property is enabled, the check will be performed via the appropriate Vault* events (and the value held by VaultFile is simply passed to such events for the application to use).

Note that this method uses a simple detection mechanism; it doesn't perform a full consistency check or attempt any repairs, so applications may still need to call CheckAndRepair even if this method returns true. If an error occurs during the detection process, this method throws an exception.

Note: This method cannot be called when Active is true, and cannot be called within events.

Copyright (c) 2021 Callback Technologies, Inc. - All rights reserved.
CBFS Storage 2020 .NET Edition - Version 20.0 [Build 8031]