2009-04-09 3 views
1

私はSites.ExportWebサービスをSharePointで使用していますが、整数値を返すまでには至っています。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

[OK]を私はこのつまずいてきました: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

0123を
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. 

引用符のコードビューについて申し訳ありませんが、私はプレビュー画面で引数を持っていました。