src/packages/EmbedIO/Files/FileModuleExtensions.cs
/// <summary>
/// Sets the name of the default document served, if it exists, instead of a directory listing
/// when the path of a requested URL maps to a directory.
/// </summary>
/// <typeparam name="TModule">The type of the module on which this method is called.</typeparam>
/// <param name="this">The module on which this method is called.</param>
/// <param name="value">The name of the default document.</param>
/// <returns><paramref name="this"/> with its <see cref="FileModule.DefaultDocument">DefaultDocument</see> property
/// set to <paramref name="value"/>.</returns>
/// <exception cref="NullReferenceException"><paramref name="this"/> is <see langword="null"/>.</exception>
/// <exception cref="InvalidOperationException">The configuration of <paramref name="this"/> is locked.</exception>
/// <seealso cref="FileModule.DefaultDocument"/>
Sets the name of the default document served, if it exists, instead of a directory listing
when the path of a requested URL maps to a directory.
Sets the name of the default document served if it exists instead of a directory listing when the path of a requested URL maps to a directory .
public static TModule WithDefaultDocument<TModule>(this TModule @this, string value)
            where TModule : FileModule
        {
            @this.DefaultDocument = value;
            return @this;
        }
public static TModule WithDefaultDocument < TModule > ( this TModule @this , string value ) where TModule : FileModule { @this . DefaultDocument = value ; return @this ; }
Sets the name of the default document served, if it exists, instead of a directory listing
when the path of a requested URL maps to a directory.
Sets the name of the default document served if it exists instead of a directory listing when the path of a requested URL maps to a directory .
with its DefaultDocument.
with its DefaultDocument .
None
The configuration of  is locked.
The configuration of is locked .
TModule
this
value
string
The name of the default document.
The name of the default document .
this
The module on which this method is called.
The module on which this method is called .
typeparam
The type of the module on which this method is called.
The type of the module on which this method is called .
seealso
None