共用方式為


AtomPubClient.CreateMediaResourceAsync 方法

定義

在指定的集合中建立新的媒體資源。

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)

參數

uri
Uri Uri

指定集合的統一資源標識碼 (URI) ,在此集合中應該建立新的資源。

mediaType
String

Platform::String

winrt::hstring

媒體資源的類型。

description
String

Platform::String

winrt::hstring

轉換成 POST 要求之 Slug: 標頭的新資源描述。

mediaStream
IInputStream

指定要作為媒體資源的 IInputStream

傳回

物件,用來以異步方式建立資源,以及報告作業的進度和完成狀態。

屬性

適用於