AtomPubClient.CreateMediaResourceAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The Uniform Resource Identifier (URI) of the specified collection in which the new resource should be created.
- mediaType
-
String
Platform::String
winrt::hstring
The type for the media resource.
- description
-
String
Platform::String
winrt::hstring
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
The object that is used to create the resource asynchronously and to report the progress and completion status of the operation.
- Attributes