CompatibleFrameworkCollection Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
[<System.Runtime.InteropServices.ComVisible(false)>]
type CompatibleFrameworkCollection = class
interface IEnumerable
Public NotInheritable Class CompatibleFrameworkCollection
Implements IEnumerable
- Inheritance
-
CompatibleFrameworkCollection
- Attributes
- Implements
Remarks
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. 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.
Properties
| Count |
Gets the number of .NET Framework versions listed in the CompatibleFrameworkCollection collection. |
| Item[Int32] |
Gets a version of the .NET Framework that an application prefers to run on. |
Methods
| Add(CompatibleFramework) |
Adds a framework to the CompatibleFramework class. |
| Clear() |
Clears the collection. |
| Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
| GetEnumerator() |
Gets the enumerator for the collection. |
| GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
| GetType() |
Gets the Type of the current instance. (Inherited from Object) |
| MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
| ToString() |
Returns a string that represents the current object. (Inherited from Object) |
Extension Methods
| Cast<TResult>(IEnumerable) |
Casts the elements of an IEnumerable to the specified type. |
| OfType<TResult>(IEnumerable) |
Filters the elements of an IEnumerable based on a specified type. |
| AsParallel(IEnumerable) |
Enables parallelization of a query. |
| AsQueryable(IEnumerable) |
Converts an IEnumerable to an IQueryable. |