CompatibleFrameworkCollection CompatibleFrameworkCollection CompatibleFrameworkCollection CompatibleFrameworkCollection Class

定义

表示应用程序运行时首选基于的 .NET Framework 的版本集合。Represents a collection of versions of the .NET Framework that an application prefers to run on.

public ref class CompatibleFrameworkCollection sealed : System::Collections::IEnumerable
[System.Runtime.InteropServices.ComVisible(false)]
public sealed class CompatibleFrameworkCollection : System.Collections.IEnumerable
type CompatibleFrameworkCollection = class
    interface IEnumerable
Public NotInheritable Class CompatibleFrameworkCollection
Implements IEnumerable
继承
CompatibleFrameworkCollectionCompatibleFrameworkCollectionCompatibleFrameworkCollectionCompatibleFrameworkCollection
属性
实现

注解

如果应用程序可以在 .NET Framework 的多个版本上运行, 则这些版本应按优先级顺序从最优先到最不可取的优先级列出。If an application can run on multiple versions of the .NET Framework, the versions should be listed in priority order from most preferred to least preferred. 如果CompatibleFrameworkCollection类中列出的 .NET Framework 版本安装在最终用户计算机上, 则该应用程序可以安装和运行。If a version of the .NET Framework listed in the CompatibleFrameworkCollection class is installed on the end-user computer, the application can install and run.

属性

Count Count Count Count

获取 CompatibleFrameworkCollection 集合中列出的 .NET Framework 版本数。Gets the number of .NET Framework versions listed in the CompatibleFrameworkCollection collection.

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

获取应用程序运行时首选基于的 .NET Framework 的版本。Gets a version of the .NET Framework that an application prefers to run on.

方法

Add(CompatibleFramework) Add(CompatibleFramework) Add(CompatibleFramework) Add(CompatibleFramework)

将一个框架添加到 CompatibleFramework 类。Adds a framework to the CompatibleFramework class.

Clear() Clear() Clear() Clear()

清除集合。Clears the 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()

获取集合的枚举数。Gets the enumerator for the 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)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。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)

扩展方法

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.

适用于