Share via


WidgetResourceRequestedArgs.Response Property

Definition

Gets or sets the WidgetResourceResponse representing the response to the widget resource request.

public:
 property WidgetResourceResponse ^ Response { WidgetResourceResponse ^ get(); void set(WidgetResourceResponse ^ value); };
WidgetResourceResponse Response();

void Response(WidgetResourceResponse value);
public WidgetResourceResponse Response { get; set; }
var widgetResourceResponse = widgetResourceRequestedArgs.response;
widgetResourceRequestedArgs.response = widgetResourceResponse;
Public Property Response As WidgetResourceResponse

Property Value

The widget resource response.

Remarks

Widget providers can access the resource request through the WidgetResourceRequestedArgs.Request property and set the WidgetResourceRequestedArgs.Response property to a WidgetResourceResponse that contains a stream to the resource and then return. If the evaluation or the resource is not immediately available, the provider should request a deferral by calling WidgetResourceRequestedArgs.GetDeferral, initiate a background task, and complete the deferral when the resource is available.

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