首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >SharePoint Sites.ExportWeb返回值

SharePoint Sites.ExportWeb返回值
EN

Stack Overflow用户
提问于 2009-04-09 02:14:27
回答 1查看 1.2K关注 0票数 1

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

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

我的C#代码如下,我得到的返回值是5,但显然我需要知道所有可能的返回值的含义:)

代码语言:javascript
复制
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的返回值到底是什么意思?

谢谢

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2009-04-09 03:49:01

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

总结一下:

ExportWebResult

代码语言:javascript
复制
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

代码语言:javascript
复制
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.  

抱歉,引号的代码视图,我在预览屏幕上有一个争论。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/732551

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档