FileType 类
表示文件的类型。
继承层次结构
System.Object
Microsoft.TeamFoundation.VersionControl.Client.FileType
命名空间: Microsoft.TeamFoundation.VersionControl.Client
程序集: Microsoft.TeamFoundation.VersionControl.Client(在 Microsoft.TeamFoundation.VersionControl.Client.dll 中)
语法
声明
Public NotInheritable Class FileType
public sealed class FileType
FileType 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
FileType | 初始化新的文件类型的实例。 |
页首
属性
名称 | 说明 | |
---|---|---|
AllowMultipleCheckout | 获取描述的标志文件类型是否允许多个签出。 | |
Extensions | 获取或设置由该文件类型描述的扩展的。 | |
Name | 获取或设置文件类型的名称。 |
页首
方法
名称 | 说明 | |
---|---|---|
Clone | 创建文件类型对象的等效的实例。 | |
Detect(String, String) | 确定指定的文件的编码。 | |
Detect(String, String, Boolean) | 确定指定的文件的编码。 | |
Detect(String, String, Boolean, array<Failure[]%) | 确定指定的文件的编码。 | |
Equals | 确定指定的对象是否等于当前对象。 (继承自 Object。) | |
GetDescription | 获取指定的编码的说明。 | |
GetDisplayName | 获取指定的编码显示名称。 | |
GetEncodingCodePage | 获取表示指定的编码代码页。 | |
GetEncodingFromCodePage | 获取与指定的代码页的编码。 | |
GetEncodingName | 获取与所指定的整数编码的名称。 | |
GetHashCode | 作为默认哈希函数。 (继承自 Object。) | |
GetSupportedEncodingDescriptions | 获取支持的编码声明,排序依据的编码名称。 | |
GetType | 获取当前实例的 Type。 (继承自 Object。) | |
ToString | 创建描述此文件类型对象属性的用户可读的字符串。 (重写 Object.ToString()。) |
页首
字段
名称 | 说明 | |
---|---|---|
AutoFileType | 指定文件类型的 autodetection。 | |
BinaryFileType | 指定文件作为二进制文件。 | |
BinaryFileTypeDisplayName | 指定二进制文件的显示名称。 | |
TextFileType | 指定文件为文本文件。 |
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。