IEncodingDetector::GetStreamEncoding Method (Stream^)
Visual Studio 2015
Attempts to detect the encoding associated with a stream.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Parameters
- stream
-
Type:
System.IO::Stream^
The stream to read.
Return Value
Type: System.Text::Encoding^The detected encoding, or null if one could not be determined.
The stream is read from its current position. The encoding detector does not need to reset the stream's position.
Show: