DatabaseFactoryCreate Method (String, DatabaseOptions) |
Namespace: Couchbase.Lite
public static IDatabase Create( string name, DatabaseOptions options )
Exception | Condition |
---|---|
ArgumentNullException | Thrown if name is null |
IOException | Directory is a file -or-The network name is not known. |
UnauthorizedAccessException | The caller does not have the required permission to create Directory. |
ArgumentException | Directory is a zero-length string, contains only white space, or contains one or more invalid characters. You can query for invalid characters by using the System.IO.Path.GetInvalidPathChars method.-or- Directory is prefixed with, or contains, only a colon character (:). |
PathTooLongException | Directory + name exceed the system-defined maximum length. For example, on Windows-based platforms, paths must be less than 248 characters and file names must be less than 260 characters. |
DirectoryNotFoundException | Directory is invalid (for example, it is on an unmapped drive). |
NotSupportedException | Directory contains a colon character (:) that is not part of a drive label ("C:\") |
ArgumentException | name contains invalid characters |
InvalidDataException | EncryptionKey contains an invalid object for creating a SymmetricKey |
LiteCoreException | An error occurred during LiteCore interop |