Share via


IDirectoryFormatter.GenerateContentAsync Method (IOwinContext, IEnumerable<IFileInfo>)

 

Generates the view for a directory. Implementers should properly handle HEAD requests. Implementers should set all necessary response headers (e.g. Content-Type, Content-Length, etc.).

Namespace:   Microsoft.Owin.StaticFiles.DirectoryFormatters
Assembly:  Microsoft.Owin.StaticFiles (in Microsoft.Owin.StaticFiles.dll)

Syntax

Task GenerateContentAsync(
    IOwinContext context,
    IEnumerable<IFileInfo> contents
)
Task^ GenerateContentAsync(
    IOwinContext^ context,
    IEnumerable<IFileInfo^>^ contents
)
abstract GenerateContentAsync : 
        context:IOwinContext *
        contents:IEnumerable<IFileInfo> -> Task
Function GenerateContentAsync (
    context As IOwinContext,
    contents As IEnumerable(Of IFileInfo)
) As Task

Parameters

Return Value

Type: System.Threading.Tasks.Task

Returns Task.

See Also

IDirectoryFormatter Interface
Microsoft.Owin.StaticFiles.DirectoryFormatters Namespace

Return to top