HttpHeaders.Remove(String) 方法

定義

HttpHeaders 集合中移除指定的標頭。

public:
 bool Remove(System::String ^ name);
public bool Remove (string name);
member this.Remove : string -> bool
Public Function Remove (name As String) As Boolean

參數

name
String

要從集合中移除的標頭名稱。

傳回

如果成功移除 name 則為 true,否則為 false。 如果在集合中 HttpHeaders 找不到 ,或 item 如果 itemnull ,則這個方法也會傳 false 回 。

適用於