Delen via


FileTypeUtil.DetermineEncoding Method (Stream, Boolean, Encoding, Boolean, Boolean%)

Namespace:  Microsoft.TeamFoundation.Diff
Assembly:  Microsoft.TeamFoundation.Diff (in Microsoft.TeamFoundation.Diff.dll)

Syntax

'Declaration
Public Shared Function DetermineEncoding ( _
    stream As Stream, _
    checkForBinary As Boolean, _
    fallbackEncoding As Encoding, _
    scanFullFile As Boolean, _
    <OutAttribute> ByRef containsPreamble As Boolean _
) As Encoding
public static Encoding DetermineEncoding(
    Stream stream,
    bool checkForBinary,
    Encoding fallbackEncoding,
    bool scanFullFile,
    out bool containsPreamble
)
public:
static Encoding^ DetermineEncoding(
    Stream^ stream, 
    bool checkForBinary, 
    Encoding^ fallbackEncoding, 
    bool scanFullFile, 
    [OutAttribute] bool% containsPreamble
)
static member DetermineEncoding : 
        stream:Stream * 
        checkForBinary:bool * 
        fallbackEncoding:Encoding * 
        scanFullFile:bool * 
        containsPreamble:bool byref -> Encoding
public static function DetermineEncoding(
    stream : Stream, 
    checkForBinary : boolean, 
    fallbackEncoding : Encoding, 
    scanFullFile : boolean, 
    containsPreamble : boolean
) : Encoding

Parameters

Return Value

Type: System.Text.Encoding

.NET Framework Security

See Also

Reference

FileTypeUtil Class

DetermineEncoding Overload

Microsoft.TeamFoundation.Diff Namespace