Microsoft.Protocols.TestSuites.MS_SITESS.MS_SITESSAdapter.ImportWeb C# (CSharp) Méthode

ImportWeb() public méthode

This operation is used to import a site from one or more content migration package files to a specified URL.
public ImportWeb ( string jobName, string webUrl, string dataFiles, string logPath, bool includeUserSecurity, bool overWrite ) : int
jobName string Specifies the operation.
webUrl string The URL of the resulting Web site.
dataFiles string The URLs of the content migration package files on the server that the server imports to create the resulting Web site.
logPath string The URL where the server places files describing the progress or status of the operation.
includeUserSecurity bool Specifies whether or not to include ACL, security group and membership group information in the resulting Web site.
overWrite bool Specifies whether or not to overwrite existing files at the location specified by logPath.
Résultat int
        public int ImportWeb(string jobName, string webUrl, string[] dataFiles, string logPath, bool includeUserSecurity, bool overWrite)
        {
            // Check whether ImportWeb operation succeeds.
            int importWebResult = -1;
            importWebResult = this.service.ImportWeb(jobName, webUrl, dataFiles, logPath, includeUserSecurity, overWrite);

            // Verify the ImportWebResponse structure.
            this.VerifyImportWeb(importWebResult);
            return importWebResult;
        }