ImportCollection 类

定义

表示项目中所有 Import 元素的集合。Represents a collection of all Import elements in a project.

public ref class ImportCollection : System::Collections::ICollection
public class ImportCollection : System.Collections.ICollection
type ImportCollection = class
    interface IEnumerable
    interface ICollection
Public Class ImportCollection
Implements ICollection
继承
ImportCollection
实现

属性

Count

获取一个值,该值指示 ImportImportCollection 对象的数目。Gets a value indicating the number of Import objects in the ImportCollection.

IsSynchronized

获取一个值,该值指示是否同步对 ImportCollection 的访问(线程安全)。Gets a value indicating whether access to the ImportCollection is synchronized (thread safe).

SyncRoot

获取可用于同步对 ImportCollection 的访问的对象。Gets an object that can be used to synchronize access to the ImportCollection.

方法

AddNewImport(String, String)

允许主机以编程方式将新的 <Import> 标记添加到由主机操作的项目文件。Allows hosts to programmatically add a new <Import> tag to a project file being manipulated by the host.

CopyTo(Array, Int32)

从目标数组的指定索引处开始将整个 ImportCollection 复制到兼容的一维 ArrayCopies the entire ImportCollection to a compatible one-dimensional Array, starting at the specified index of the target array.

CopyTo(Import[], Int32)

从目标数组的指定索引处开始,将整个 ImportCollection 复制到 Array 对象的一维兼容 ImportCopies the entire ImportCollection to a compatible one-dimensional Array of Import objects, starting at the specified index of the target array.

Equals(Object)

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

(继承自 Object)
GetEnumerator()

获取循环访问 ImportCollection 的枚举数。Gets an enumerator that iterates through the ImportCollection.

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

允许主机以编程方式删除属于由主机操作的项目文件的 <Import> 标记。Allows hosts to programmatically remove <Import> tags that are part of a project file being manipulated by the host.

ToString()

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

(继承自 Object)

扩展方法

Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于