Method OpenVariantAsync
OpenVariantAsync(FileId, string, FileAccessPattern)
Opens a file stream for an existing file variant in the repository using the recommended sharing options.
Declaration
public ValueTask<FileStream> OpenVariantAsync(FileId fileId, string variantId, FileAccessPattern accessPattern)
Parameters
| Type | Name | Description |
|---|---|---|
| FileId | fileId | The ID of the main file. |
| string | variantId | The ID of the variant. |
| FileAccessPattern | accessPattern | How the caller is going to read the stream. The file is opened with the matching caching hint, as Open(FileAccessPattern) describes. |
Returns
| Type | Description |
|---|---|
| ValueTask<FileStream> |
Exceptions
| Type | Condition |
|---|---|
| RepoFileNotFoundException | The variant was not found. |