一款简单易用的基础网络通讯组件库。

IHttpParams 接口

Http参数

Definition

命名空间: TouchSocket.Http
程序集: TouchSocket.Http (在 TouchSocket.Http.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
public interface IHttpParams : IDictionary<string, string>, 
	ICollection<KeyValuePair<string, string>>, IEnumerable<KeyValuePair<string, string>>, 
	IEnumerable
Implements
ICollectionKeyValuePairString, String, IDictionaryString, String, IEnumerableKeyValuePairString, String, IEnumerable

属性

CountGets the number of elements contained in the ICollectionT.
(继承自 ICollectionKeyValuePairString, String。)
IsReadOnlyGets a value indicating whether the ICollectionT is read-only.
(继承自 ICollectionKeyValuePairString, String。)
ItemGets or sets the element with the specified key.
(继承自 IDictionaryString, String。)
KeysGets an ICollectionT containing the keys of the IDictionaryTKey, TValue.
(继承自 IDictionaryString, String。)
ValuesGets an ICollectionT containing the values in the IDictionaryTKey, TValue.
(继承自 IDictionaryString, String。)

方法

Add(T)Adds an item to the ICollectionT.
(继承自 ICollectionKeyValuePairString, String。)
Add(TKey, TValue)Adds an element with the provided key and value to the IDictionaryTKey, TValue.
(继承自 IDictionaryString, String。)
ClearRemoves all items from the ICollectionT.
(继承自 ICollectionKeyValuePairString, String。)
ContainsDetermines whether the ICollectionT contains a specific value.
(继承自 ICollectionKeyValuePairString, String。)
ContainsKeyDetermines whether the IDictionaryTKey, TValue contains an element with the specified key.
(继承自 IDictionaryString, String。)
CopyToCopies the elements of the ICollectionT to an Array, starting at a particular Array index.
(继承自 ICollectionKeyValuePairString, String。)
Get 获取参数
GetEnumeratorReturns an enumerator that iterates through the collection.
(继承自 IEnumerableKeyValuePairString, String。)
Remove(T)Removes the first occurrence of a specific object from the ICollectionT.
(继承自 ICollectionKeyValuePairString, String。)
Remove(TKey)Removes the element with the specified key from the IDictionaryTKey, TValue.
(继承自 IDictionaryString, String。)
TryGetValueGets the value associated with the specified key.
(继承自 IDictionaryString, String。)

扩展方法

ForEachKeyValuePairString, String 循环遍历每个元素,执行Action动作
(由 CollectionsExtension 定义。)
ForEachAsyncKeyValuePairString, String 循环遍历每个元素,执行异步动作
(由 CollectionsExtension 定义。)

参见