Share via


WidgetResourceRequest.Headers Property

Definition

Gets or sets a dictionary of header values that can be used to in a widget resource request.

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)

Property Value

IMap<String,String>

IDictionary<String,String>

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

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

A dictionary of header values.

Remarks

If the provider returns from IWidgetResourceProvider.OnResourceRequested setting the WidgetResourceRequestedArgs.Response property, the header collection may be modified and will be used to fetch the resource from the web.

Applies to