次の方法で共有


Sites.ExportWeb メソッド (websvcSites)

Web サイトをエクスポートします。

名前空間: websvcSites
アセンブリ: STSSOAP (stssoap.dll 内)

構文

'宣言
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/ExportWeb", RequestNamespace:="https://schemas.microsoft.com/sharepoint/soap/", ResponseNamespace:="https://schemas.microsoft.com/sharepoint/soap/", Use:=SoapBindingUse.Literal, ParameterStyle:=SoapParameterStyle.Wrapped)> _
Public Function ExportWeb ( _
    jobName As String, _
    webUrl As String, _
    dataPath As String, _
    includeSubwebs As Boolean, _
    includeUserSecurity As Boolean, _
    overWrite As Boolean, _
    cabSize As Integer _
) As Integer
'使用
Dim instance As Sites
Dim jobName As String
Dim webUrl As String
Dim dataPath As String
Dim includeSubwebs As Boolean
Dim includeUserSecurity As Boolean
Dim overWrite As Boolean
Dim cabSize As Integer
Dim returnValue As Integer

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

パラメータ

  • jobName
    コンテンツ移行パッケージに使用するファイル名。
  • webUrl
    エクスポートするサイトの URL。
  • dataPath
    コンテンツ移行パッケージが配置されているディレクトリの場所。
  • includeSubwebs
    サブ Web を含む場合は true、それ以外の場合は false
  • includeUserSecurity
    サイトのセキュリティ グループおよびグループのメンバシップ情報を含む場合は true、それ以外の場合は false
  • overWrite
    コンテンツ移行パッケージが存在する場合にそれを上書きするときは true、それ以外の場合は false。
  • cabSize
    CMP (コンテンツ移行パッケージ) ファイルの最大サイズを示します。

備考

Sites サービスおよびそのメソッドにアクセスするには、Web 参照を https://Server_Name/[sites/][Site_Name/]_vti_bin/Sites.asmx に設定します。

SOAP Request Format   以下にサンプルの SOAP 1.1 要求を示します。示されているプレースホルダは実際の値に置き換えます。

POST /_vti_bin/sites.asmx HTTP/1.1
Host: ServerName
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://schemas.microsoft.com/sharepoint/soap/ExportWeb"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <ExportWeb xmlns="https://schemas.microsoft.com/sharepoint/soap/">
      <jobName>string</jobName>
      <webUrl>string</webUrl>
      <dataPath>string</dataPath>
      <includeSubwebs>boolean</includeSubwebs>
      <includeUserSecurity>boolean</includeUserSecurity>
      <overWrite>boolean</overWrite>
      <cabSize>int</cabSize>
    </ExportWeb>
  </soap:Body>
</soap:Envelope>

SOAP Response Format   以下にサンプルの SOAP 1.1 応答を示します。示されているプレースホルダは実際の値に置き換えます。

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <ExportWebResponse xmlns="https://schemas.microsoft.com/sharepoint/soap/">
      <ExportWebResult>int</ExportWebResult>
    </ExportWebResponse>
  </soap:Body>
</soap:Envelope>

関連項目

参照

Sites クラス
Sites メンバ
websvcSites 名前空間