Method AddContentRoot
AddContentRoot(DirectoryInfo)
Dynamically adds a content root(wwwroot) directory at runtime. This is useful when static content needs to be provided from directories that weren't known or didn't exist at the application's startup.
Declaration
void AddContentRoot(DirectoryInfo contentRoot)
Parameters
| Type | Name | Description |
|---|---|---|
| DirectoryInfo | contentRoot | The new content root directory containing static web assets. |