Property IsReadOnly
IsReadOnly
Gets a value indicating whether the repository is read-only.
Declaration
bool IsReadOnly { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
A read-only repository can be fetched from and enumerated, and its events are raised, but every member that would write to it throws an InvalidOperationException: BeginTransactionAsync(), BeginStagedTransactionAsync(), the methods that add variants (GetOrAddVariantAsync(FileId, string, string?, IFileProcessingPipelineSelector, CancellationToken) only when a variant does not exist yet), DeleteVariantsAsync(FileId, params ReadOnlySpan<string>) and the clean methods.