Share via


IWebCloudService.CreateSite method

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

Syntax

'Declaration
<WebInvokeAttribute(UriTemplate := "subscriptions/{subscriptionName}/webspaces/{webspaceName}/sites",  _
    Method := "POST")> _
Function CreateSite ( _
    subscriptionName As String, _
    webspaceName As String, _
    site As Site _
) As Site
'Usage
Dim instance As IWebCloudService
Dim subscriptionName As String
Dim webspaceName As String
Dim site As Site
Dim returnValue As Site

returnValue = instance.CreateSite(subscriptionName, _
    webspaceName, site)
[WebInvokeAttribute(UriTemplate = "subscriptions/{subscriptionName}/webspaces/{webspaceName}/sites", 
    Method = "POST")]
Site CreateSite(
    string subscriptionName,
    string webspaceName,
    Site site
)

Parameters

Return value

Type: Microsoft.Web.Hosting.Administration.Site

See also

Reference

IWebCloudService interface

IWebCloudService members

Microsoft.Web.Hosting.Administration namespace