共用方式為


CompatibleFrameworkCollection Class

Definition

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.

GetEnumerator()

Gets the enumerator for the collection.

Applies to