语言

WidgetResourceRequest.Headers 属性

定义

获取或设置可用于小组件资源请求中的标头值的字典。

public:
 property IMap<Platform::String ^, Platform::String ^> ^ Headers { IMap<Platform::String ^, Platform::String ^> ^ get(); };
IMap<winrt::hstring, winrt::hstring const&> Headers();
public IDictionary<string,string> Headers { get; }
var iMap = widgetResourceRequest.headers;
Public ReadOnly Property Headers As IDictionary(Of String, String)

属性值

IMap<String,String>

IDictionary<String,String>

IMap<Platform::String,Platform::String>

IMap<winrt::hstring,winrt::hstring>

标头值的字典。

注解

如果提供程序从 IWidgetResourceProvider.OnResourceRequested 设置 WidgetResourceRequestedArgs.Response 属性返回,则标头集合可能会被修改,并用于从 Web 提取资源。

适用于