ResponseTrailerExtensions.DeclareTrailer(HttpResponse, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將指定的預告片名稱新增至 '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