Share via


ManagementScopePath.CreateSitePath(String, Int32, String) Method

Definition

Creates a server path by using the server name, port number, and site name.

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

Parameters

managementServerName
String

The name of the server.

port
Int32

The port number.

siteName
String

The name of the site.

Returns

A ManagementScopePath object that contains the parameters that are passed to this method.

Examples

The following example creates a ManagementScopePath object.

void TrcMSPsite() {

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

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

Applies to