共用方式為


ResponseTrailerExtensions.DeclareTrailer(HttpResponse, String) 方法

定義

將指定的預告片名稱新增至 'Trailer' 回應標頭。 這必須在傳送回應標頭之前發生。

public:
[System::Runtime::CompilerServices::Extension]
 static void DeclareTrailer(Microsoft::AspNetCore::Http::HttpResponse ^ response, System::String ^ trailerName);
public static void DeclareTrailer (this Microsoft.AspNetCore.Http.HttpResponse response, string trailerName);
static member DeclareTrailer : Microsoft.AspNetCore.Http.HttpResponse * string -> unit
<Extension()>
Public Sub DeclareTrailer (response As HttpResponse, trailerName As String)

參數

response
HttpResponse
trailerName
String

適用於