FileTypeUtil.DetermineEncoding Method (Stream, Boolean, Encoding)
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 _
) As Encoding
public static Encoding DetermineEncoding(
Stream stream,
bool checkForBinary,
Encoding fallbackEncoding
)
public:
static Encoding^ DetermineEncoding(
Stream^ stream,
bool checkForBinary,
Encoding^ fallbackEncoding
)
static member DetermineEncoding :
stream:Stream *
checkForBinary:bool *
fallbackEncoding:Encoding -> Encoding
public static function DetermineEncoding(
stream : Stream,
checkForBinary : boolean,
fallbackEncoding : Encoding
) : Encoding
Parameters
- stream
Type: System.IO.Stream
- checkForBinary
Type: System.Boolean
- fallbackEncoding
Type: System.Text.Encoding
Return Value
Type: System.Text.Encoding
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.