Constructor FileFormatValidationOptions
FileFormatValidationOptions(params ReadOnlySpan<FileFormat>)
Initializes a new instance of the FileFormatValidationOptions class with the specified allowed file formats.
Declaration
public FileFormatValidationOptions(params ReadOnlySpan<FileFormat> allowedFormats)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<FileFormat> | allowedFormats | The file formats that are allowed by the validation processor. Each extension may only appear in one file format across the collection. |
FileFormatValidationOptions(IEnumerable<FileFormat>)
Initializes a new instance of the FileFormatValidationOptions class with the specified allowed file formats.
Declaration
public FileFormatValidationOptions(IEnumerable<FileFormat> allowedFormats)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<FileFormat> | allowedFormats | The file formats that are allowed by the validation processor. Each extension may only appear in one file format across the collection. |