Partager via


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

'Déclaration
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.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (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 a hash function for a particular type. (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.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (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
Public fieldStatic member BinaryFileType
Public fieldStatic member BinaryFileTypeDisplayName
Public fieldStatic member TextFileType

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