AtomPubClient.CreateMediaResourceAsync | createMediaResourceAsync method

Applies to Windows and Windows Phone

Creates a new media resource in the specified collection.

Syntax


atomPubClient.createMediaResourceAsync(uri, mediaType, description, mediaStream).done( /* Your success and error handlers */ );

Parameters

uri

Type: Windows.Foundation.Uri [JavaScript] | System.Uri [.NET] | Windows::Foundation::Uri [C++]

The URI of the specified collection in which the new resource should be created.

mediaType

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The type for the media resource.

description

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

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

mediaStream

Type: IInputStream

Specifies the IInputStream to use as the media resource.

Return value

Type: IAsyncOperationWithProgress<SyndicationItem, TransferProgress>

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

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Web.AtomPub
Windows::Web::AtomPub [C++]

Metadata

Windows.winmd

See also

AtomPubClient

 

 

Show:
© 2014 Microsoft