共用方式為


BackgroundUploader.CreateUploadFromStreamAsync(Uri, IInputStream) 方法

定義

傳回非同步作業,完成時會傳回具有指定 URI 和來來源資料流的 UploadOperation

public:
 virtual IAsyncOperation<UploadOperation ^> ^ CreateUploadFromStreamAsync(Uri ^ uri, IInputStream ^ sourceStream) = CreateUploadFromStreamAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<UploadOperation> CreateUploadFromStreamAsync(Uri const& uri, IInputStream const& sourceStream);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<UploadOperation> CreateUploadFromStreamAsync(System.Uri uri, IInputStream sourceStream);
function createUploadFromStreamAsync(uri, sourceStream)
Public Function CreateUploadFromStreamAsync (uri As Uri, sourceStream As IInputStream) As IAsyncOperation(Of UploadOperation)

參數

uri
Uri Uri

與資源相關聯的 URI。

sourceStream
IInputStream

表示來來源資料流。

傳回

產生的非同步上傳作業。

屬性

適用於