Share via


IWebCloudService.SwapSite method

Namespace:  Microsoft.Web.Hosting.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<WebInvokeAttribute(UriTemplate := "subscriptions/{subscriptionName}/webspaces/{webspaceName}/sites/{name}?Command={command}&OtherSiteName={otherSiteName}",  _
    Method := "POST")> _
Sub SwapSite ( _
    subscriptionName As String, _
    webspaceName As String, _
    name As String, _
    command As String, _
    otherSiteName As String _
)
'Usage
Dim instance As IWebCloudService
Dim subscriptionName As String
Dim webspaceName As String
Dim name As String
Dim command As String
Dim otherSiteName As String

instance.SwapSite(subscriptionName, webspaceName, _
    name, command, otherSiteName)
[WebInvokeAttribute(UriTemplate = "subscriptions/{subscriptionName}/webspaces/{webspaceName}/sites/{name}?Command={command}&OtherSiteName={otherSiteName}", 
    Method = "POST")]
void SwapSite(
    string subscriptionName,
    string webspaceName,
    string name,
    string command,
    string otherSiteName
)

Parameters

See also

Reference

IWebCloudService interface

IWebCloudService members

Microsoft.Web.Hosting.Administration namespace