Share via


Sites.ImportWeb Method

Namespace:  [Sites Web service]
Web service reference: http://Site/_vti_bin/Sites.asmx

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/ImportWeb", RequestNamespace := "https://schemas.microsoft.com/sharepoint/soap/",  _
    ResponseNamespace := "https://schemas.microsoft.com/sharepoint/soap/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function ImportWeb ( _
    jobName As String, _
    webUrl As String, _
    dataFiles As String(), _
    logPath As String, _
    includeUserSecurity As Boolean, _
    overWrite As Boolean _
) As Integer
'Usage
Dim instance As Sites
Dim jobName As String
Dim webUrl As String
Dim dataFiles As String()
Dim logPath As String
Dim includeUserSecurity As Boolean
Dim overWrite As Boolean
Dim returnValue As Integer

returnValue = instance.ImportWeb(jobName, _
    webUrl, dataFiles, logPath, includeUserSecurity, _
    overWrite)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/ImportWeb", RequestNamespace = "https://schemas.microsoft.com/sharepoint/soap/", 
    ResponseNamespace = "https://schemas.microsoft.com/sharepoint/soap/", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public int ImportWeb(
    string jobName,
    string webUrl,
    string[] dataFiles,
    string logPath,
    bool includeUserSecurity,
    bool overWrite
)

Parameters

  • dataFiles
    Type: []

Return Value

Type: System.Int32

Remarks

To access the Sites service and its methods, set a Web reference to https://Server_Name/[sites/][Site_Name/]_vti_bin/Sites.asmx.

See Also

Reference

Sites Class

Sites Members

Sites Web Service