HttpMultipartContent.ReadAsStringAsync Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Sérialisez httpMultipartContent dans une chaîne en tant qu’opération asynchrone.
public:
virtual IAsyncOperationWithProgress<Platform::String ^, unsigned long long> ^ ReadAsStringAsync() = ReadAsStringAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperationWithProgress<winrt::hstring, uint64_t> ReadAsStringAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperationWithProgress<string,ulong> ReadAsStringAsync();
function readAsStringAsync()
Public Function ReadAsStringAsync () As IAsyncOperationWithProgress(Of String, ULong)
Retours
Windows.Foundation.IAsyncOperationWithProgress<Platform::String,unsigned long long>
IAsyncOperationWithProgress<winrt::hstring,uint64_t>
Objet représentant l’opération asynchrone.
Implémente
- Attributs
Remarques
Cette opération ne se bloque pas. L’objet IAsyncOperationWithProgress(String, UInt64) retourné se termine une fois que tout le contenu a été écrit dans la chaîne.
La classe HttpMultipartContent peut être utilisée pour diffuser en continu du contenu de longueur arbitraire. La méthode ReadAsStringAsync échoue si l’ensemble de HttpMultipartContent ne peut pas tenir dans la mémoire, car cette méthode nécessite que tout le contenu soit d’abord mis en mémoire tampon.
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour