Share via

Sites.ImportWeb Method

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


<SoapDocumentMethodAttribute("", RequestNamespace := "",  _
    ResponseNamespace := "",  _
    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
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, _
[SoapDocumentMethodAttribute("", RequestNamespace = "", 
    ResponseNamespace = "", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public int ImportWeb(
    string jobName,
    string webUrl,
    string[] dataFiles,
    string logPath,
    bool includeUserSecurity,
    bool overWrite


  • dataFiles
    Type: []

Return Value

Type: System.Int32


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


Sites Class

Sites Members

Sites Web Service