Share via


StreamedFileDataRequest.WriteAsync(IBuffer) Méthode

Définition

Écrit les données d’une mémoire tampon dans le flux actuel.

public:
 virtual IAsyncOperationWithProgress<unsigned int, unsigned int> ^ WriteAsync(IBuffer ^ buffer) = WriteAsync;
IAsyncOperationWithProgress<uint32_t, uint32_t> WriteAsync(IBuffer const& buffer);
public IAsyncOperationWithProgress<uint,uint> WriteAsync(IBuffer buffer);
function writeAsync(buffer)
Public Function WriteAsync (buffer As IBuffer) As IAsyncOperationWithProgress(Of UInteger, UInteger)

Paramètres

buffer
IBuffer

Mémoire tampon qui contient les données à écrire.

Retours

IAsyncOperationWithProgress<UInt32,UInt32>

Windows.Foundation.IAsyncOperationWithProgress<unsigned int,unsigned int>

IAsyncOperationWithProgress<uint32_t,uint32_t>

Une fois cette méthode terminée, elle retourne le nombre d’octets (type UInt32) qui ont été écrits dans le flux. Si l’application spécifie une fonction pour surveiller la progression, cette fonction reçoit le nombre d’octets (type UInt32) écrits jusqu’à présent.

Implémente

S’applique à