This documentation is archived and is not being maintained.
FileType::Detect Method (String, String, Boolean)
Visual Studio 2013
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 )
Parameters
- path
- Type: System::String
The path of the local file for which the encoding is unknown.
- fileEncoding
- Type: System::String
The encoding to try. Specify null for autodetection of encoding.
- treatMissingFileAsBinary
- Type: System::Boolean
True to treat a missing file as binary.
- 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.
Show: