Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

FileType.Detect Method (String, String, Boolean)

Determines the encoding of the specified file.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)

public static int Detect(
	string path,
	string fileEncoding,
	bool treatMissingFileAsBinary


Type: System.String

The path of the local file for which the encoding is unknown.

Type: System.String

The encoding to try. Specify null for autodetection of encoding.

Type: System.Boolean

True to treat a missing file as binary.

Return Value

Type: System.Int32
The encoding of the file that is determined by this method.

Specify "auto" or null in fileEncoding to force autodetection.

© 2015 Microsoft