AtomPubClient.CreateMediaResourceAsync Method

Definition

Creates a new media resource in the specified collection.

public:
 virtual IAsyncOperationWithProgress<SyndicationItem ^, TransferProgress> ^ CreateMediaResourceAsync(Uri ^ uri, Platform::String ^ mediaType, Platform::String ^ description, IInputStream ^ mediaStream) = CreateMediaResourceAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperationWithProgress<SyndicationItem, TransferProgress> CreateMediaResourceAsync(Uri const& uri, winrt::hstring const& mediaType, winrt::hstring const& description, IInputStream const& mediaStream);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperationWithProgress<SyndicationItem,TransferProgress> CreateMediaResourceAsync(System.Uri uri, string mediaType, string description, IInputStream mediaStream);
function createMediaResourceAsync(uri, mediaType, description, mediaStream)
Public Function CreateMediaResourceAsync (uri As Uri, mediaType As String, description As String, mediaStream As IInputStream) As IAsyncOperationWithProgress(Of SyndicationItem, TransferProgress)

Parameters

uri
Uri Uri

The Uniform Resource Identifier (URI) of the specified collection in which the new resource should be created.

mediaType
String

The type for the media resource.

description
String

The description of the new resource that is turned into the Slug: header of the POST request.

mediaStream
IInputStream

Specifies the IInputStream to use as the media resource.

Returns

IAsyncOperationWithProgress<SyndicationItem,TransferProgress>

The object that is used to create the resource asynchronously and to report the progress and completion status of the operation.

Attributes

Applies to