FileReference 类

定义

描述清单文件引用。Describes a manifest file reference.

public ref class FileReference sealed : Microsoft::Build::Tasks::Deployment::ManifestUtilities::BaseReference
[System.Runtime.InteropServices.ComVisible(false)]
public sealed class FileReference : Microsoft.Build.Tasks.Deployment.ManifestUtilities.BaseReference
[<System.Runtime.InteropServices.ComVisible(false)>]
type FileReference = class
    inherit BaseReference
Public NotInheritable Class FileReference
Inherits BaseReference
继承
FileReference
属性

构造函数

FileReference()

初始化 FileReference 类的新实例。Initializes a new instance of the FileReference class.

FileReference(String)

初始化 FileReference 类的新实例。Initializes a new instance of the FileReference class.

属性

ComClasses

指定由独立应用程序和 Reg-Free COM 的清单引用的 COM 类集。Specifies the set of COM classes referenced by the manifest for isolated applications and Reg-Free COM.

Group

指定按需下载功能的组。Specifies the group for on-demand download functionality. 指示主文件的空白字符串。A blank string indicates a primary file.

(继承自 BaseReference)
Hash

指定文件的 SHA1 哈希。Specifies the SHA1 hash of the file.

(继承自 BaseReference)
IsDataFile

指定文件是否为数据文件。Specifies whether the file is a data file.

IsOptional

指定文件是否可选用按需下载功能。Specifies whether the file is optional for on-deman download functionality.

(继承自 BaseReference)
ProxyStubs

指定由独立应用程序和 Reg-Free COM 的清单引用的代理存根集。Specifies the set of proxy stubs referenced by the manifest for isolated applications and Reg-Free COM.

ResolvedPath

指定文件的解析路径。Specifies the resolved path to the file. 此路径由 Resolve 方法确定,用于通过 UpdateFileInfo 方法计算文件信息。This path is determined by the Resolve method, and is used to compute the file information by the UpdateFileInfo method.

(继承自 BaseReference)
Size

指定文件大小(以字节为单位)。Specifies the file size in bytes.

(继承自 BaseReference)
SortName

获取一个值,该值用于对应用程序清单中的引用程序集进行排序。Gets a value that is used to sort the referenced assemblies in the application manifest.

(继承自 BaseReference)
SourcePath

指定文件的源路径。Specifies the source path of the file.

(继承自 BaseReference)
TargetPath

指定文件的目标路径。Specifies the target path of the file. 这是用于生成清单中的规范的路径。This is the path that is used for specification in the generated manifest.

(继承自 BaseReference)
TypeLibs

指定由清单引用的类型库集。Specifies the set of type libraries referenced by the manifest.

XmlComClasses

获取或设置一个属性,它用于将 ComClasses 属性序列化为 XML 文件。Gets or sets a property that is used to serialize the ComClasses property to an XML file.

XmlGroup

获取或设置按需下载功能的组。Gets or sets the group for on-demand download functionality.

(继承自 BaseReference)
XmlHash

获取或设置一个属性,它用于将 Hash 属性序列化为 XML 文件。Gets or sets a property that is used to serialize the Hash property to an XML file.

(继承自 BaseReference)
XmlHashAlgorithm

获取或设置用于将哈希算法序列化为 XML 文件的属性。Gets or sets a property that is used to serialize the hash algorithm to an XML file.

(继承自 BaseReference)
XmlIsOptional

获取或设置一个属性,它用于将 IsOptional 属性序列化为 XML 文件。Gets or sets a property that is used to serialize the IsOptional property to an XML file.

(继承自 BaseReference)
XmlPath

获取或设置用于将路径序列化为 XML 文件的属性。Gets or sets a property that is used to serialize the path to an XML file.

(继承自 BaseReference)
XmlProxyStubs

获取或设置一个属性,它用于将 ProxyStubs 属性序列化为 XML 文件。Gets or sets a property that is used to serialize the ProxyStubs property to an XML file.

XmlSize

获取或设置一个属性,它用于将 Size 属性序列化为 XML 文件。Gets or sets a property that is used to serialize the Size property to an XML file.

(继承自 BaseReference)
XmlTypeLibs

获取或设置一个属性,它用于将 TypeLibs 属性序列化为 XML 文件。Gets or sets a property that is used to serialize the TypeLibs property to an XML file.

XmlWriteableType

获取或设置一个值,该值指示文件是否为数据文件。Gets or sets a value that indicates whether the file is a data file.

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回基引用名称。Returns the base reference name.

(继承自 BaseReference)

适用于