BlobFactoryCreate Method (String, Uri) |
Namespace: Couchbase.Lite
public static IBlob Create( string contentType, Uri fileUrl )
Exception | Condition |
---|---|
ArgumentNullException | Thrown if fileUrl is null |
ArgumentException | Thrown if fileUrl is not a file based URL |
DirectoryNotFoundException | The specified fileUrl is invalid, (for example, it is on an unmapped drive). |
UnauthorizedAccessException | fileUrl specified a directory -or- The caller does not have the required permission. |
FileNotFoundException | The file specified in fileUrl was not found. |
IOException | An I/O error occurred while opening the file. |