Import 类

定义

表示 MSBuild 项目中的单个 Import 元素。Represents a single Import element in an MSBuild project.

public ref class Import
public class Import
type Import = class
Public Class Import
继承
Import

属性

Condition

获取 Import 元素的 Condition 特性值。Gets the Condition attribute value of the Import element.

EvaluatedProjectPath

获取在 Import 元素的 Name 属性中指定的文件的完全限定路径。Gets the fully qualified path of the file specified in the Name attribute of the Import element.

IsImported

获取一个值,该值指示 Import 元素是否已导入到项目中。Gets a value indicating whether the Import element was imported into the project.

ProjectPath

获取或设置 Import 元素的 Project 特性值。Gets or sets the Project attribute value of the Import element.

方法

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()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于