Compartilhar via


IWidgetResourceProvider.OnResourceRequested Method

Definition

Raised when the widget's web content requests a resource that matches the web request filter string for a widget in the WebRequestFilter attribute of the Definition element in the provider's package manifest file. For more information, see Widget provider package manifest XML format.

public:
 void OnResourceRequested(WidgetResourceRequestedArgs ^ args);
void OnResourceRequested(WidgetResourceRequestedArgs const& args);
public void OnResourceRequested(WidgetResourceRequestedArgs args);
function onResourceRequested(args)
Public Sub OnResourceRequested (args As WidgetResourceRequestedArgs)

Parameters

args
WidgetResourceRequestedArgs

A WidgetResourceRequestedArgs containing information about the resource request.

Remarks

If the provider returns the OnResourceRequested call without setting a WidgetResourceResponse in the WidgetResourceRequestedArgs, a web fetch will be made. When returning without a WidgetResourceResponse, the provider may modify the Headers collection which will then be used by the web fetch.

Applies to