EncodingExtensions.GetString(Encoding, ReadOnlySequence<Byte>) 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.
Decodes the specified ReadOnlySequence<T> into a String using the specified Encoding.
public:
[System::Runtime::CompilerServices::Extension]
static System::String ^ GetString(System::Text::Encoding ^ encoding, System::Buffers::ReadOnlySequence<System::Byte> % bytes);
public static string GetString (this System.Text.Encoding encoding, in System.Buffers.ReadOnlySequence<byte> bytes);
static member GetString : System.Text.Encoding * ReadOnlySequence -> string
<Extension()>
Public Function GetString (encoding As Encoding, ByRef bytes As ReadOnlySequence(Of Byte)) As String
Parameters
- encoding
- Encoding
The encoding that represents how the data in bytes
is encoded.
- bytes
- ReadOnlySequence<Byte>
The sequence to decode into characters.
Returns
A String which represents the decoded contents of bytes
.
Exceptions
bytes
contains data that cannot be decoded and encoding
is configured to throw when such data is seen.
Applies to
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.