IDirectoryFormatter.GenerateContentAsync 方法

定义

生成目录的视图。 实现程序应正确处理 HEAD 请求。 实施者应设置 (所有必需的响应标头,例如 Content-Type、Content-Length 等 ) 。

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

参数

context
HttpContext

返回

适用于