FeedResourceRequestedArgs.Response Property

Definition

Gets or sets the FeedResourceResponse representing the response to the feed resource request.

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

void Response(FeedResourceResponse value);
public FeedResourceResponse Response { get; set; }
var feedResourceResponse = feedResourceRequestedArgs.response;
feedResourceRequestedArgs.response = feedResourceResponse;
Public Property Response As FeedResourceResponse

Property Value

The feed resource response.

Remarks

Feed providers can access the resource request through the FeedResourceRequestedArgs.Request property and set the FeedResourceRequestedArgs.Response to a FeedResourceResponse 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 FeedResourceRequestedArgs.GetDeferral, initiate a background task, and complete the deferral when the resource is available.

If the provider returns the OnResourceRequested call without setting the FeedResourceRequestedArgs.Response property, a web fetch will be made. When returning without a FeedResourceResponse, the provider may modify the Headers collection which will then be used by the web fetch.

Applies to