Share via


ApplicationPoolDefaults.ManagedRuntimeVersion Property

Definition

Gets or sets the version of the .NET Framework that is used for managed applications in the application pool.

public:
 property System::String ^ ManagedRuntimeVersion { System::String ^ get(); void set(System::String ^ value); };
public string ManagedRuntimeVersion { get; set; }
member this.ManagedRuntimeVersion : string with get, set
Public Property ManagedRuntimeVersion As String

Property Value

The version number of the .NET Framework that is used by the application pool. The default is "v2.0".

Examples

The following example displays the value of the ManagedRuntimeVersion property. This code example is part of a larger example provided for the ApplicationPoolDefaults class.

Console.WriteLine("ManagedRuntimeVersion:\t{0}",
    manager.ApplicationPoolDefaults.ManagedRuntimeVersion.ToString());

Remarks

Current valid values are "v2.0" and "v1.1". Additional values will be accepted when new versions of the .NET Framework are installed on the IIS server.

You can use the ManagedRuntimeVersion property to configure the managed runtime version of a new application pool.

Applies to

See also