共用方式為


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

傳回

適用於