RemoteResource Class
Works with data from a remote resource. Use this class to construct a data request, process the response, and parse the data that is received.
Note If a mapping is incorrect (for example, the resource does not exist), an error message is not displayed and the the value of the resource will simply appear empty.
public abstract class RemoteResource : Microsoft.MediaCenter.UI.ModelItem
Protected Instance Constructor
Method | Description |
RemoteResource | Initializes a new instance of the RemoteResource class. |
Public Instance Methods
Method | Description |
GetDataFromResource | Begins the data request. |
PerformRedirect | Redirects the response to a specified URI. |
Validate | Validates the response data. |
Public Instance Properties
Property | Description |
DefaultRequestMethod | Gets the default request method. |
HasError | Indicates whether the data contains errors. |
Mappings | Gets or sets a collection of RemoteValue objects that indicate how to map the data. |
RequestChanged | Gets or sets a value that indicates whether the data request has changed. |
RequestComplete | Gets a value that indicates whether the data request is complete. |
RequestDocument | Gets or sets the request document. |
RequestGeneration | Gets a counter value that indicates which request number that the RemoteResource object is currently processing. Initiating a new request on this remote resource increments the RequestGeneration property and stops any pending or unfinished requests from this object. |
RequestHeaders | Gets or sets the headers in the data request. |
RequestMethod | Gets or sets the request method. |
RequestUri | Gets or sets the URI to the remote resource. |
ResponseDocument | Gets the response document. |
ResponseHeaders | Gets the response headers. |
ResponseStatusCode | Gets the status code of the response. |
ResponseStatusDescription | Gets the description of the status code. |
Status | Gets a value that indicates the status of the data request. |
Requirements
Reference: Microsoft.MediaCenter
Namespace: Microsoft.MediaCenter.DataAccess
Assembly: Microsoft.MediaCenter.dll
Platform: Windows 7
See Also