Share via


HeaderDictionary.Remove 方法

定义

重载

Remove(KeyValuePair<String,StringValues>)

从集合中删除给定项。

Remove(String)

从集合中删除给定的标头。

Remove(KeyValuePair<String,StringValues>)

Source:
HeaderDictionary.cs
Source:
HeaderDictionary.cs

从集合中删除给定项。

public:
 virtual bool Remove(System::Collections::Generic::KeyValuePair<System::String ^, Microsoft::Extensions::Primitives::StringValues> item);
public bool Remove (System.Collections.Generic.KeyValuePair<string,Microsoft.Extensions.Primitives.StringValues> item);
abstract member Remove : System.Collections.Generic.KeyValuePair<string, Microsoft.Extensions.Primitives.StringValues> -> bool
override this.Remove : System.Collections.Generic.KeyValuePair<string, Microsoft.Extensions.Primitives.StringValues> -> bool
Public Function Remove (item As KeyValuePair(Of String, StringValues)) As Boolean

参数

返回

如果从集合中删除了指定的对象,则为 true;否则为 false。

实现

适用于

Remove(String)

Source:
HeaderDictionary.cs
Source:
HeaderDictionary.cs

从集合中删除给定的标头。

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

参数

key
String

标头名称。

返回

如果从集合中删除了指定的对象,则为 true;否则为 false。

实现

适用于