ProjectMetadata ProjectMetadata ProjectMetadata ProjectMetadata Class

定義

表示已評估的設計階段中繼資料。Represents evaluated design-time metadata.

public ref class ProjectMetadata : IEquatable<Microsoft::Build::Evaluation::ProjectMetadata ^>
public class ProjectMetadata : IEquatable<Microsoft.Build.Evaluation.ProjectMetadata>
type ProjectMetadata = class
    interface IEquatable<ProjectMetadata>
Public Class ProjectMetadata
Implements IEquatable(Of ProjectMetadata)
繼承
ProjectMetadataProjectMetadataProjectMetadataProjectMetadata
實作

備註

永遠不會用來代表內建的中繼資料,像是 %(Filename)。Never used to represent built-in metadata, like %(Filename). 中繼資料一律會與專案原始程式碼相關聯的。The metadata is always associated with project source code.

中繼資料包含藉以ProjectItemDefinitionProjectItemThe metadata is contained by either by a ProjectItemDefinition or a ProjectItem.

屬性

ConditionLocation ConditionLocation ConditionLocation ConditionLocation

Condition 屬性的位置。Location of the Condition attribute.

EvaluatedValue EvaluatedValue EvaluatedValue EvaluatedValue

取得已評估的中繼資料值。Gets the evaluated metadata value.

IsImported IsImported IsImported IsImported

判斷中繼資料是否源自已匯入的檔案。Determines if the metadata originated from an imported file.

ItemType ItemType ItemType ItemType

取得包含項目定義或項目的項目型別。Gets the item type of the containing item definition or item.

Location Location Location Location

項目的位置。Location of the element.

Name Name Name Name

取得中繼資料的名稱。Gets the name of the metadata.

Predecessor Predecessor Predecessor Predecessor

取得此中繼資料在評估期間覆寫的最後一個中繼資料 (從項目定義或項目)。Gets the last metadata (from an item definition or item) that was overridden by this metadata during evaluation.

Project Project Project Project

取得包含此中繼資料的專案。Gets the project that contains this metadata.

UnevaluatedValue UnevaluatedValue UnevaluatedValue UnevaluatedValue

取得或設定未評估的中繼資料值。Gets or sets the unevaluated metadata value.

Xml Xml Xml Xml

取得關聯的專案中繼資料項目。Gets the associated project metadata element.

明確介面實作

IEquatable<ProjectMetadata>.Equals(ProjectMetadata) IEquatable<ProjectMetadata>.Equals(ProjectMetadata) IEquatable<ProjectMetadata>.Equals(ProjectMetadata) IEquatable<ProjectMetadata>.Equals(ProjectMetadata)

比較這個專案中繼資料與指定的專案中繼資料是否相等。Compares this project metadata with the given project metadata for equality.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

適用於