ResponseTrailerExtensions.AppendTrailer 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將指定的預告片標頭新增至要傳送于回應本文結尾的預告片集合。 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