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 。
返回
对象,用于异步创建资源并报告操作的进度和完成状态。
- 属性