FileType Class

Represents the type of a file.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.VersionControl.Client.FileType

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

Syntax

'Declaration
Public NotInheritable Class FileType
public sealed class FileType
public ref class FileType sealed
[<Sealed>]
type FileType =  class end
public final class FileType

The FileType type exposes the following members.

Constructors

  Name Description
Public method FileType Initializes a new FileType instance.

Top

Properties

  Name Description
Public property AllowMultipleCheckout Gets a flag that describes whether the file type allows multiple check-outs.
Public property Extensions Gets or sets an array of the extensions that are described by this file type.
Public property Name Gets or sets the name of the file type.

Top

Methods

  Name Description
Public method Clone Creates an equivalent instance of a FileType object.
Public methodStatic member Detect(String, String) Determines the encoding of the specified file.
Public methodStatic member Detect(String, String, Boolean) Determines the encoding of the specified file.
Public methodStatic member Detect(String, String, Boolean, array<Failure[]%) Determines the encoding of the specified file.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodStatic member GetDescription Gets the description of the specified encoding.
Public methodStatic member GetDisplayName Gets the display name of the specified encoding.
Public methodStatic member GetEncodingCodePage Gets the code page that represents the specified encoding.
Public methodStatic member GetEncodingFromCodePage Gets the encoding that is associated with the specified code page.
Public methodStatic member GetEncodingName Gets the name of the encoding that is associated with the specified integer.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public methodStatic member GetSupportedEncodingDescriptions Gets an array of descriptions of the supported encodings, sorted by encoding name.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Creates a user-readable string that describes the properties of this FileType object. (Overrides Object.ToString().)

Top

Fields

  Name Description
Public fieldStatic member AutoFileType Specifies autodetection of file type.
Public fieldStatic member BinaryFileType Specifies the file as binary file.
Public fieldStatic member BinaryFileTypeDisplayName Specifies the display name of the binary file.
Public fieldStatic member TextFileType Specifies the file as text file.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.TeamFoundation.VersionControl.Client Namespace