DownloadedFile.Text(Encoding) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Decode bytes as UTF-8 (or a provided encoding). No content-type check. Lossy: invalid bytes become the U+FFFD replacement character and never throw. For strict or binary-safe reads, use Bytes.
public string Text(System.Text.Encoding? encoding = default);
member this.Text : System.Text.Encoding -> string
Public Function Text (Optional encoding As Encoding = Nothing) As String
Parameters
- encoding
- Encoding
Encoding to decode with. Defaults to UTF-8.