Share via


ManagementScopePath.SetFrameworkVersion(ManagementFrameworkVersion) Method

Definition

Sets the .NET Framework version.

public:
 void SetFrameworkVersion(Microsoft::Web::Management::Server::ManagementFrameworkVersion ^ frameworkVersion);
public void SetFrameworkVersion (Microsoft.Web.Management.Server.ManagementFrameworkVersion frameworkVersion);
member this.SetFrameworkVersion : Microsoft.Web.Management.Server.ManagementFrameworkVersion -> unit
Public Sub SetFrameworkVersion (frameworkVersion As ManagementFrameworkVersion)

Parameters

frameworkVersion
ManagementFrameworkVersion

The .NET Framework version.

Examples

The following example creates a ManagementScopePath object and sets the .NET Framework version.

void TrcMSPsite() {

    ManagementScopePath msp = ManagementScopePath.
        CreateSitePath(
             "localHost",
            80,
            "MySite"
        );

    msp.SetFrameworkVersion(FrameVrs);
    TrcMSP(msp);
} 

Applies to