CompatibleFrameworkCollection Class
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
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.
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. |
Add(Compatible |
Adds a framework to the CompatibleFramework class. |
Clear() |
Clears the collection. |
Get |
Gets the enumerator for the collection. |
Product | Versions |
---|---|
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |