ManagementUnit.FrameworkVersion Property
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.
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.