共用方式為


ResponseTrailerExtensions.AppendTrailer 方法

定義

將指定的預告片標頭新增至要傳送于回應本文結尾的預告片集合。 Check SupportsTrailers(HttpResponse) 或 InvalidOperationException 可能會擲回。

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

參數

response
HttpResponse
trailerName
String
trailerValues
StringValues

適用於