Compartilhar via


ManagementScopePath.CreateApplicationPath Método

Definição

Cria um caminho de aplicativo usando os parâmetros especificados.

public:
 static Microsoft::Web::Management::Client::ManagementScopePath ^ CreateApplicationPath(System::String ^ managementServerName, int port, System::String ^ siteName, System::String ^ applicationPath);
public static Microsoft.Web.Management.Client.ManagementScopePath CreateApplicationPath (string managementServerName, int port, string siteName, string applicationPath);
static member CreateApplicationPath : string * int * string * string -> Microsoft.Web.Management.Client.ManagementScopePath
Public Shared Function CreateApplicationPath (managementServerName As String, port As Integer, siteName As String, applicationPath As String) As ManagementScopePath

Parâmetros

managementServerName
String

O nome do servidor.

port
Int32

O número da porta.

siteName
String

O nome do site.

applicationPath
String

O caminho do aplicativo.

Retornos

Um ManagementScopePath objeto que contém os parâmetros que são passados para esse método.

Exemplos

O exemplo a seguir cria um ManagementScopePath objeto .

void TrcMSPx() {

    ManagementScopePath msp = ManagementScopePath.CreateApplicationPath(
        "localHost",
        80,
        "rickaSite",
        "/Rx2"
    );

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

Aplica-se a