ManagementScopePath.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.
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 that identifies the .NET Framework version.
Examples
The following example sends ManagementScopePath details to the trace listener.
void TrcMSP(ManagementScopePath msp) {
Trace.WriteLine("ApplicationPath = " + msp.ApplicationPath);
Trace.WriteLine("Port = " + msp.Port.ToString());
if (msp.FrameworkVersion != null &&
!string.IsNullOrEmpty(msp.FrameworkVersion.Version.ToString()))
Trace.WriteLine("FrameworkVersion = " + msp.FrameworkVersion.Version);
Trace.WriteLine("ServerName = " + msp.ServerName);
Trace.WriteLine("ServerReference = " + msp.ServerReference);
Trace.WriteLine("SiteName = " + msp.SiteName);
}