Share via


ManagementConfigurationPath.CreateApplicationConfigurationPath Method

Definition

Creates a new application configuration path.

Overloads

CreateApplicationConfigurationPath(String)

Creates a new application configuration path.

CreateApplicationConfigurationPath(String, String)

Creates a new application configuration path by using the specified Web site name.

CreateApplicationConfigurationPath(String)

Creates a new application configuration path.

public:
 static Microsoft::Web::Management::Server::ManagementConfigurationPath ^ CreateApplicationConfigurationPath(System::String ^ applicationPath);
public static Microsoft.Web.Management.Server.ManagementConfigurationPath CreateApplicationConfigurationPath (string applicationPath);
static member CreateApplicationConfigurationPath : string -> Microsoft.Web.Management.Server.ManagementConfigurationPath
Public Shared Function CreateApplicationConfigurationPath (applicationPath As String) As ManagementConfigurationPath

Parameters

applicationPath
String

The application path.

Returns

A ManagementConfigurationPath object.

Examples

The following example creates a new ManagementConfigurationPath object.

void doStrtConfgMgntApp(IServiceProvider sp, string appPath) {

    Connection con = (Connection)sp.GetService(typeof(Connection));

    ManagementConfigurationPath newConfigurationPath = ManagementConfigurationPath
        .CreateApplicationConfigurationPath(appPath);

    bool b = con.StartConfigurationManagement(newConfigurationPath);
    if (b != true)
        ShowMessage("Failure: \n CreateApplicationConfigurationPath for App Path" 
            + appPath, "Error");

} 

Applies to

CreateApplicationConfigurationPath(String, String)

Creates a new application configuration path by using the specified Web site name.

public:
 static Microsoft::Web::Management::Server::ManagementConfigurationPath ^ CreateApplicationConfigurationPath(System::String ^ siteName, System::String ^ applicationPath);
public static Microsoft.Web.Management.Server.ManagementConfigurationPath CreateApplicationConfigurationPath (string siteName, string applicationPath);
static member CreateApplicationConfigurationPath : string * string -> Microsoft.Web.Management.Server.ManagementConfigurationPath
Public Shared Function CreateApplicationConfigurationPath (siteName As String, applicationPath As String) As ManagementConfigurationPath

Parameters

siteName
String

The name of the Web site.

applicationPath
String

The application path.

Returns

A ManagementConfigurationPath object.

Examples

The following example creates a new ManagementConfigurationPath object.

void doStrtConfgMgntApp(IServiceProvider sp, string siteNm, string appPath) {

    Connection con = (Connection)sp.GetService(typeof(Connection));

    ManagementConfigurationPath newConfigurationPath = ManagementConfigurationPath
        .CreateApplicationConfigurationPath(siteNm, appPath);

    bool b = con.StartConfigurationManagement(newConfigurationPath);
    if (b != true)
        ShowMessage("Failure: \n CreateApplicationConfigurationPath for site "
            + siteNm + "  App Path" + appPath, "Error");

}

Applies to