Dela via


IDirectoryFormatter.GenerateContentAsync Method

Definition

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.).

public:
 System::Threading::Tasks::Task ^ GenerateContentAsync(Microsoft::AspNetCore::Http::HttpContext ^ context, System::Collections::Generic::IEnumerable<Microsoft::Extensions::FileProviders::IFileInfo ^> ^ contents);
public System.Threading.Tasks.Task GenerateContentAsync (Microsoft.AspNetCore.Http.HttpContext context, System.Collections.Generic.IEnumerable<Microsoft.Extensions.FileProviders.IFileInfo> contents);
abstract member GenerateContentAsync : Microsoft.AspNetCore.Http.HttpContext * seq<Microsoft.Extensions.FileProviders.IFileInfo> -> System.Threading.Tasks.Task
Public Function GenerateContentAsync (context As HttpContext, contents As IEnumerable(Of IFileInfo)) As Task

Parameters

context
HttpContext

Returns

Applies to