Connection.CurrentFrameworkVersion 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 ^ CurrentFrameworkVersion { Microsoft::Web::Management::Server::ManagementFrameworkVersion ^ get(); };
public Microsoft.Web.Management.Server.ManagementFrameworkVersion CurrentFrameworkVersion { get; }
member this.CurrentFrameworkVersion : Microsoft.Web.Management.Server.ManagementFrameworkVersion
Public ReadOnly Property CurrentFrameworkVersion As ManagementFrameworkVersion
Property Value
The ManagementFrameworkVersion object that is associated with this connection.
Examples
public LinkedList<string> getCurFrameWorkVers(IServiceProvider sp) {
Connection con = (Connection)sp.GetService(typeof(Connection));
LinkedList<string> llp = new LinkedList<string>();
llp.AddLast("Version = " +
con.CurrentFrameworkVersion.Version.ToString());
llp.AddLast("CanManageFrameworkConfiguration = " +
con.CurrentFrameworkVersion.CanManageFrameworkConfiguration.ToString());
llp.AddLast("FrameworkConfigurationPath = " +
con.CurrentFrameworkVersion.FrameworkConfigurationPath);
llp.AddLast("Name = " + con.CurrentFrameworkVersion.Name);
llp.AddLast("Version.Major = " +
con.CurrentFrameworkVersion.Version.Major.ToString());
llp.AddLast("Version.MajorRevision = " +
con.CurrentFrameworkVersion.Version.MajorRevision.ToString());
llp.AddLast("Version.Minor = " +
con.CurrentFrameworkVersion.Version.Minor.ToString());
llp.AddLast("Version.MinorRevision = " +
con.CurrentFrameworkVersion.Version.MinorRevision.ToString());
llp.AddLast("Version.Revision = " +
con.CurrentFrameworkVersion.Version.Revision.ToString());
return llp;
}
Remarks
The .NET Framework version is integral to a management unit. A connection allows a user to manage a single management unit (for example, an application under a specific .NET Framework version).