HttpClientHandler.Properties 属性

定义

获取 HttpClient 的自定义属性的可写字典(即地图)。Gets a writable dictionary (that is, a map) of custom properties for the HttpClient requests. 初始字典为空;可以为自定义处理程序和特殊处理插入和查询键值对。The dictionary is initialized empty; you can insert and query key-value pairs for your custom handlers and special processing.

public:
 property System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ Properties { System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ get(); };
public System.Collections.Generic.IDictionary<string,object?> Properties { get; }
public System.Collections.Generic.IDictionary<string,object> Properties { get; }
member this.Properties : System.Collections.Generic.IDictionary<string, obj>
Public ReadOnly Property Properties As IDictionary(Of String, Object)

属性值

IDictionary<String,Object>

自定义属性的可写字典。a writable dictionary of custom properties.

适用于