AtomPubClient AtomPubClient AtomPubClient AtomPubClient AtomPubClient Class

Definition

Encapsulates the methods needed to implement the AtomPub protocol which enables HTTP CRUD access to Web resources using the Atom 1.0 wire format.

public : sealed class AtomPubClient : IAtomPubClient, ISyndicationClient
struct winrt::Windows::Web::AtomPub::AtomPubClient : IAtomPubClient, ISyndicationClient
public sealed class AtomPubClient : IAtomPubClient, ISyndicationClient
Public NotInheritable Class AtomPubClient Implements IAtomPubClient, ISyndicationClient
var atomPubClient = new atomPubClient();
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
privateNetworkClientServer internetClient

Remarks

For examples of how these class methods are implemented to create, retrieve, update, or delete syndicated content, see Quickstart: Managing Feed Entries.

Constructors

AtomPubClient() AtomPubClient() AtomPubClient() AtomPubClient() AtomPubClient()

Creates a new AtomPubClient object.

AtomPubClient(PasswordCredential) AtomPubClient(PasswordCredential) AtomPubClient(PasswordCredential) AtomPubClient(PasswordCredential) AtomPubClient(PasswordCredential)

Creates a new AtomPubClient object with the credential to use when making requests to the server. Initially, a 'username/password' tuple. However, for domain credentials, the username must be in 'domain\user form'.

Properties

BypassCacheOnRetrieve BypassCacheOnRetrieve BypassCacheOnRetrieve BypassCacheOnRetrieve BypassCacheOnRetrieve

Gets or sets a Boolean value that specifies whether to bypass the cache when retrieving the feed.

MaxResponseBufferSize MaxResponseBufferSize MaxResponseBufferSize MaxResponseBufferSize MaxResponseBufferSize

Gets or sets the maximum number of bytes to buffer when receiving a response from a server.

ProxyCredential ProxyCredential ProxyCredential ProxyCredential ProxyCredential

Gets or sets the credentials to use when making requests via a proxy.

ServerCredential ServerCredential ServerCredential ServerCredential ServerCredential

Gets or sets the credentials to use when making requests to the server.

Timeout Timeout Timeout Timeout Timeout

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.

Methods

CancelAsyncOperations() CancelAsyncOperations() CancelAsyncOperations() CancelAsyncOperations() CancelAsyncOperations()

Cancels any in-progress asynchronous operations, causing them to fail (asynchronously) with an error code indicating cancellation.

CreateMediaResourceAsync(Uri, String, String, IInputStream) CreateMediaResourceAsync(Uri, String, String, IInputStream) CreateMediaResourceAsync(Uri, String, String, IInputStream) CreateMediaResourceAsync(Uri, String, String, IInputStream) CreateMediaResourceAsync(Uri, String, String, IInputStream)

Creates a new media resource in the specified collection.

CreateResourceAsync(Uri, String, SyndicationItem) CreateResourceAsync(Uri, String, SyndicationItem) CreateResourceAsync(Uri, String, SyndicationItem) CreateResourceAsync(Uri, String, SyndicationItem) CreateResourceAsync(Uri, String, SyndicationItem)

Creates a new Entry resource in the specified collection. The Uri of the collection in which to create the new resource can be discovered from the ResourceCollection object retrieved from the RetrieveResourceAsync method.

DeleteResourceAsync(Uri) DeleteResourceAsync(Uri) DeleteResourceAsync(Uri) DeleteResourceAsync(Uri) DeleteResourceAsync(Uri)

Deletes an existing Entry or Media Link resource.

DeleteResourceItemAsync(SyndicationItem) DeleteResourceItemAsync(SyndicationItem) DeleteResourceItemAsync(SyndicationItem) DeleteResourceItemAsync(SyndicationItem) DeleteResourceItemAsync(SyndicationItem)

Deletes an existing Entry or Media Link resource. This differs from the DeleteResourceAsync method in that the SyndicationItem object that represents the resource to be deleted is specified instead of the Uri. The DeleteResourceItemAsync method uses the property of the specified SyndicationItem as the Uri of the resource to be deleted.

RetrieveFeedAsync(Uri) RetrieveFeedAsync(Uri) RetrieveFeedAsync(Uri) RetrieveFeedAsync(Uri) RetrieveFeedAsync(Uri)

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.

RetrieveMediaResourceAsync(Uri) RetrieveMediaResourceAsync(Uri) RetrieveMediaResourceAsync(Uri) RetrieveMediaResourceAsync(Uri) RetrieveMediaResourceAsync(Uri)

Retrieves a media link resource from the specified Uniform Resource Identifier (URI).

RetrieveResourceAsync(Uri) RetrieveResourceAsync(Uri) RetrieveResourceAsync(Uri) RetrieveResourceAsync(Uri) RetrieveResourceAsync(Uri)

Retrieves an Entry resource or Media Link resource from the specified Uniform Resource Identifier (URI).

RetrieveServiceDocumentAsync(Uri) RetrieveServiceDocumentAsync(Uri) RetrieveServiceDocumentAsync(Uri) RetrieveServiceDocumentAsync(Uri) RetrieveServiceDocumentAsync(Uri)

Retrieves a service document from the specified Uri.

SetRequestHeader(String, String) SetRequestHeader(String, String) SetRequestHeader(String, String) SetRequestHeader(String, String) SetRequestHeader(String, String)

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 ",".

UpdateMediaResourceAsync(Uri, String, IInputStream) UpdateMediaResourceAsync(Uri, String, IInputStream) UpdateMediaResourceAsync(Uri, String, IInputStream) UpdateMediaResourceAsync(Uri, String, IInputStream) UpdateMediaResourceAsync(Uri, String, IInputStream)

Updates a media link resource from the specified Uniform Resource Identifier (URI).

UpdateResourceAsync(Uri, SyndicationItem) UpdateResourceAsync(Uri, SyndicationItem) UpdateResourceAsync(Uri, SyndicationItem) UpdateResourceAsync(Uri, SyndicationItem) UpdateResourceAsync(Uri, SyndicationItem)

Updates an existing Entry or Media Link resource. If an ETag: header has previously been seen while retrieving this resource (in a response to RetrieveResourceAsync, CreateResourceAsync or a previous call to UpdateResourceAsync ), this method automatically sends an If-Match: header with the remembered value.

UpdateResourceItemAsync(SyndicationItem) UpdateResourceItemAsync(SyndicationItem) UpdateResourceItemAsync(SyndicationItem) UpdateResourceItemAsync(SyndicationItem) UpdateResourceItemAsync(SyndicationItem)

Updates an existing Entry or Media Link resource. This differs from the UpdateResourceAsync method in that the EditUri property of the specified SyndicationItem object is used as the Uri of the resource to be updated.

See Also