我正在使用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的返回值到底是什么意思?
谢谢
发布于 2009-04-09 03:49:01
好的,我偶然发现了这个: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 successfullyImportWebResult
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. 抱歉,引号的代码视图,我在预览屏幕上有一个争论。
https://stackoverflow.com/questions/732551
复制相似问题