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

返回

对象,用于异步创建资源并报告操作的进度和完成状态。

属性

适用于