SharePoint Sites.ExportWeb возвращает значения - PullRequest
1 голос
/ 09 апреля 2009

Я играю со службой 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?

Спасибо

1 Ответ

3 голосов
/ 09 апреля 2009

Хорошо, я наткнулся на это: 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.  

Извините за представление кода для кавычек, у меня возник спор с экраном предварительного просмотра.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...