English 中文(简体)
SharePoint网站.ExportWeb返回值
原标题:
  • 时间:2009-04-09 02:14:26
  •  标签:

我正在玩Sites.ExportWeb在SharePoint中的服务,我已经到了返回整数值的地步。

我的问题是,我在任何地方都找不到关于这些返回值的任何文档!

我的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的返回值的实际含义吗?

谢谢

最佳回答

好吧,我偶然发现了这个:http://msdn.microsoft.com/en-us/library/cc313065.aspx

总结如下:

导出WebResult

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.  

很抱歉出现引号的代码视图,我在预览屏幕上发生了争论。

问题回答

暂无回答




相关问题
热门标签