ProjectMetadataInstance 类
定义
包装用于生成目的的、经过评估的元数据片段,这些元数据通过 ProjectItemInstance 对象上的方法添加和删除。Wraps an evaluated piece of metadata for build purposes Added and removed via methods on the ProjectItemInstance object. 不可变对象。IMMUTABLE OBJECT.
public ref class ProjectMetadataInstance : IEquatable<Microsoft::Build::Execution::ProjectMetadataInstance ^>
public class ProjectMetadataInstance : IEquatable<Microsoft.Build.Execution.ProjectMetadataInstance>
type ProjectMetadataInstance = class
interface IEquatable<ProjectMetadataInstance>
Public Class ProjectMetadataInstance
Implements IEquatable(Of ProjectMetadataInstance)
- 继承
-
ProjectMetadataInstance
- 实现
注解
通过对象上的方法添加和删除 ProjectItemInstance 。Added and removed via methods on the ProjectItemInstance object.
属性
EvaluatedValue |
元数据的计算值。Evaluated value of the metadatum. 决不会为 null。Never null. |
Name |
元数据的名称Name of the metadata |
方法
DeepClone() |
深度克隆元数据字符串是不可变的(写入时复制),因此无需执行任何操作。Deep clone the metadata Strings are immutable (copy on write) so there is no work to do. 允许内置元数据名称,因为这些名称在新的元数据中仍然有效。Allows built-in metadata names, as they are still valid on the new metadatum. |
Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
ToString() |
方便跟踪的字符串表示形式String representation handy for tracing |
显式接口实现
IEquatable<ProjectMetadataInstance>.Equals(ProjectMetadataInstance) |
将此元数据与另一个元数据进行比较,确定是否相等。Compares this metadata to another for equivalence. |