Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Determines the encoding of the specified file.
Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
'Declaration
Public Shared Function Detect ( _
path As String, _
fileEncoding As String _
) As Integer
public static int Detect(
string path,
string fileEncoding
)
public:
static int Detect(
String^ path,
String^ fileEncoding
)
static member Detect :
path:string *
fileEncoding:string -> int
public static function Detect(
path : String,
fileEncoding : String
) : int
Parameters
path
Type: System.StringThe path of the local file for which the encoding is unknown.
fileEncoding
Type: System.StringThe encoding to try. Specify null for autodetection of encoding.
Return Value
Type: System.Int32
The encoding of the file that is determined by this method.
Remarks
Specify "auto" or null in fileEncoding to force autodetection.
.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.