Share via


ManagementUnit.FrameworkVersion Property

Definition

Gets the .NET Framework version for the current management unit.

public:
 property Microsoft::Web::Management::Server::ManagementFrameworkVersion ^ FrameworkVersion { Microsoft::Web::Management::Server::ManagementFrameworkVersion ^ get(); };
public Microsoft.Web.Management.Server.ManagementFrameworkVersion FrameworkVersion { get; }
member this.FrameworkVersion : Microsoft.Web.Management.Server.ManagementFrameworkVersion
Public ReadOnly Property FrameworkVersion As ManagementFrameworkVersion

Property Value

A ManagementFrameworkVersion object for the management unit.

Examples

The following example uses the FrameworkVersion property to get .NET Framework information and write it to tracing output.

public void TraceFramVers() {
    ManagementUnit mu = this.ManagementUnit;

    Trace.WriteLine("FrameworkConfigurationPath : " +
        mu.FrameworkVersion.FrameworkConfigurationPath);
    Trace.WriteLine("CanManageFrameworkConfiguration: " +
        mu.FrameworkVersion.CanManageFrameworkConfiguration);
    Trace.WriteLine("FrameworkVersion : " + mu.FrameworkVersion.Text);
} 

Remarks

You must override the GetAssociatedFrameworkVersion method to provide a meaningful value for this property.

Applies to