Compartir a través de


IEncodingDetector.GetStreamEncoding Method

Attempts to detect the encoding associated with a stream.

Namespace:  Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Declaración
Function GetStreamEncoding ( _
    stream As Stream _
) As Encoding
Encoding GetStreamEncoding(
    Stream stream
)
Encoding^ GetStreamEncoding(
    Stream^ stream
)
abstract GetStreamEncoding : 
        stream:Stream -> Encoding 
function GetStreamEncoding(
    stream : Stream
) : Encoding

Parameters

Return Value

Type: System.Text.Encoding
The detected encoding, or nulla null reference (Nothing in Visual Basic) if one could not be determined.

Remarks

The stream is read from its current position. The encoding detector does not need to reset the stream's position.

.NET Framework Security

See Also

Reference

IEncodingDetector Interface

Microsoft.VisualStudio.Text Namespace