Implements the ISyndicationClient interface which retrieves feeds from a URI asynchronously.
Syntax
Public NotInheritable Class SyndicationClient Inherits Object Implements ISyndicationClient
Attributes
- ActivatableAttribute(Windows.Web.Syndication.ISyndicationClientFactory, NTDDI_WIN8)
- ActivatableAttribute(NTDDI_WIN8)
- DualApiPartitionAttribute()
- MarshalingBehaviorAttribute(Agile)
- ThreadingAttribute(Both)
- VersionAttribute(NTDDI_WIN8)
Members
The SyndicationClient class has these types of members:
Constructors
The SyndicationClient class has these constructors.
| Constructor | Description |
|---|---|
| SyndicationClient() | Creates a new SyndicationClient object. |
| SyndicationClient(PasswordCredential) | Creates a new SyndicationClient object with authentication credentials. |
Methods
The SyndicationClient class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.
| Method | Description |
|---|---|
| RetrieveFeedAsync | Starts an asynchronous operation to download the syndication feed from the given URI. This method instantiates a SyndicationFeed object from the feed string, which can be in one of the formats specified in SyndicationFormat. |
| SetRequestHeader | Sets an HTTP header for the request. This method can be called multiple times to set multiple headers. When the same header is set multiple times, the values will be concatenated and separated by ,. |
Properties
The SyndicationClient class has these properties.
| Property | Access type | Description |
|---|---|---|
| Read/write | Gets or sets a Boolean value that specifies whether to bypass the cache when retrieving the feed. | |
| Read/write | Gets or sets the maximum number of bytes to buffer when receiving a response from a server. | |
| Read/write | Gets or sets the credentials to use when making requests via a proxy. | |
| Read/write | Gets or sets the credentials to use when making requests to the server. | |
| Read/write | Gets or sets the maximum amount of time, in milliseconds, to wait for any of the asynchronous operations to complete. If the operation is not complete within this amount of time, it will fail with a status code indicating that it timed out. |
Remarks
The following code demonstrates how to retrieve a feed using RetrieveFeedAsync.
No code example is currently available or this language may not be supported.
For additional examples that demonstrate how this class is used to retrieve syndicated content from the web, see Quickstart: Accessing a web feed.
Requirements
|
Minimum supported client | Windows 8 [Windows Store apps, desktop apps] |
|---|---|
|
Minimum supported server | Windows Server 2012 [Windows Store apps, desktop apps] |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 12/4/2012