AtomPubClient.CreateMediaResourceAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在指定的集合中建立新的媒體資源。
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)
參數
- mediaType
-
String
Platform::String
winrt::hstring
媒體資源的類型。
- description
-
String
Platform::String
winrt::hstring
轉換成 POST 要求之 Slug: 標頭的新資源描述。
- mediaStream
- IInputStream
指定要作為媒體資源的 IInputStream 。
傳回
物件,用來以異步方式建立資源,以及報告作業的進度和完成狀態。
- 屬性