ResponseHeaders 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
強型別 HTTP 回應標頭。
public ref class ResponseHeaders
public class ResponseHeaders
type ResponseHeaders = class
Public Class ResponseHeaders
- 繼承
-
ResponseHeaders
建構函式
| ResponseHeaders(IHeaderDictionary) |
初始化 ResponseHeaders 的新執行個體。 |
屬性
| CacheControl |
取得或設定 |
| ContentDisposition |
取得或設定 |
| ContentLength |
取得或設定 |
| ContentRange |
取得或設定 |
| ContentType |
取得或設定 |
| Date |
取得或設定 |
| ETag |
取得或設定 |
| Expires |
取得或設定 |
| Headers |
取得備份回應標頭字典。 |
| LastModified |
取得或設定 |
| Location |
取得或設定 |
| SetCookie |
取得或設定 |
方法
| Append(String, Object) |
附加標頭名稱和值。 |
| AppendList<T>(String, IList<T>) |
附加標頭名稱及其值。 |
| Get<T>(String) |
使用 取得標頭 |
| GetList<T>(String) |
使用 取得標頭 |
| Set(String, Object) |
設定標頭值。 |
| SetList<T>(String, IList<T>) |
設定指定的標頭及其值。 |