ProductCollection ProductCollection ProductCollection ProductCollection Class

定义

此接口表示 Product 对象集合。This interface represents a collection of Product objects. 该集合是由 BootstrapperBuilder 基于 Path 属性生成的封闭集。The collection is a closed set generated by the BootstrapperBuilder based on the Path property. 客户端无法添加或移除此集合中的项。The client cannot add or remove items from this collection.

此 API 支持产品基础结构,不能在代码中直接使用。

public ref class ProductCollection : Microsoft::Build::Tasks::Deployment::Bootstrapper::IProductCollection, System::Collections::IEnumerable
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("EFFA164B-3E87-4195-88DB-8AC004DDFE2A")]
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
public class ProductCollection : Microsoft.Build.Tasks.Deployment.Bootstrapper.IProductCollection, System.Collections.IEnumerable
type ProductCollection = class
    interface IProductCollection
    interface IEnumerable
Public Class ProductCollection
Implements IEnumerable, IProductCollection
继承
ProductCollectionProductCollectionProductCollectionProductCollection
属性
实现

属性

Count Count Count Count

获取产品集合中包含的元素数。Gets the number of elements contained in the product collection.

方法

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

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

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

返回一个可循环访问产品集合的枚举器。Returns an enumerator that can iterate through the product collection.

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

检索位于指定索引处的产品。Retrieves the product at the specified index.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

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

(Inherited from Object)
Product(String) Product(String) Product(String) Product(String)

检索具有指定产品代码的产品。Retrieves the product with the specified product code.

ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

扩展方法

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

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

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

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

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

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

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于