共用方式為


HttpRequestFeature.Headers 屬性

定義

取得或設定要求中包含的標頭,並依標頭名稱匯總。

這些值不會跨標頭行分割或合併。 例如,下列標頭:

  • HeaderA:value1,value2
  • HeaderA:value3
Headers[「HeaderA」] = { 「value1, value2」, 「value3」 }

public:
 property Microsoft::AspNetCore::Http::IHeaderDictionary ^ Headers { Microsoft::AspNetCore::Http::IHeaderDictionary ^ get(); void set(Microsoft::AspNetCore::Http::IHeaderDictionary ^ value); };
public Microsoft.AspNetCore.Http.IHeaderDictionary Headers { get; set; }
member this.Headers : Microsoft.AspNetCore.Http.IHeaderDictionary with get, set
Public Property Headers As IHeaderDictionary

屬性值

實作

適用於