2009-04-09 35 views
1

我在使用SharePoint中的Sites.ExportWeb服務,並且我已經知道它返回一個整數值。SharePoint Sites.ExportWeb返回值

我的問題是我無法找到任何有關這些返回值意味着什麼文檔!

我的C#代碼如下,我得到的返回值是5,但顯然我需要知道的所有可能的返回值意味着:)

SitesWebReference.Sites siteservice = new SitesWebReference.Sites(); 
siteservice.Credentials = System.Net.CredentialCache.DefaultCredentials; 

int ret = siteservice.ExportWeb("exportJob", source, "http://sharepoint/sites/MySite/Export", true, true, false, 1000); 

會有人知道或有什麼返回值來自ExportWeb和它的朋友ImportWeb其實是什麼意思?

感謝

回答

2

好,我在這個偶然:http://msdn.microsoft.com/en-us/library/cc313065.aspx

總結:

ExportWebResult

1 - Pending // The operation is in progress 
4 - InvalidExportUrl // The site specified in the webUrl is not accessible 
5 - ExportFileNoAccess // The location specified in the dataPath is not accessible 
6 - ExportWebNoAccess // The user does not have the open web permission and manage web permission in order to execute this operation successfully 
7 - ExportError // An error other than the errors listed in this table occurred during exporting the site 
8 - UploadDataError // The content migration package file is not uploaded to the server successfully 

ImportWebResult

1 - Pending // The operation is in progress. 
2 - GenericError // An error other than the errors listed in this table occurred importing the site. 
4 - InvalidImportUrl // The site specified in the webUrl is not accessible. 
5 - ImportFileNoAccess // At least one location specified in dataFiles i s not accessible. 
6 - ImportWebNoAccess // The user has insufficient permission to import to the location specified in webUrl. 
8 - ImportWebNotEmpty // The location specified by webUrl corresponds to an existing site that is not a blank site. 
11 - LogFileNoAccess // The location specified by logPath is not accessible. 

對不起,關於引號的代碼視圖,我有預覽屏幕的參數。