Property FileIdMode
FileIdMode
Gets or sets the mode used to generate file IDs in the repository. Default is Secure.
Declaration
public FileIdMode FileIdMode { get; set; }
Property Value
| Type | Description |
|---|---|
| FileIdMode |
Remarks
Sequential IDs are ordered by creation time, which improves locality and indexing performance, and they can be predicted: someone who knows one ID can guess others, so they give no protection to files that are accessible to anyone who knows their ID. Secure IDs are random and can't be predicted.
If this setting is changed, existing file IDs are not affected and the repository continues to function as expected, but new file IDs are generated according to the new mode.
The mode applies to the whole repository, so files that need different modes are in separate repositories.
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException | The value is not a defined FileIdMode value. |