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

CreateWeb() public méthode

This operation is used to create a new subsite of the current site
public CreateWeb ( string url, string title, string description, string templateName, uint language, bool languageSpecified, uint locale, bool localeSpecified, uint collationLocale, bool collationLocaleSpecified, bool uniquePermissions, bool uniquePermissionsSpecified, bool anonymous, bool anonymousSpecified, bool presence, bool presenceSpecified ) : CreateWebResponseCreateWebResult
url string The site-relative URL of the subsite to be created.
title string The display name of the subsite to be created.
description string Description of the subsite to be created.
templateName string The name of an available site template to be used for the subsite to be created.
language uint An LCID that specifies the language of the user interface of the subsite to be created.
languageSpecified bool Whether language specified
locale uint An LCID that specifies the display format for numbers, dates, times, and currencies in the subsite to be created.
localeSpecified bool Whether locale specified.
collationLocale uint An LCID that specifies the collation order to use in the subsite to be created.
collationLocaleSpecified bool Whether collationLocale specified.
uniquePermissions bool Specifies whether the subsite to be created uses its own set of permissions or parent site.
uniquePermissionsSpecified bool Whether uniquePermissions specified.
anonymous bool Whether the anonymous authentication is to be allowed for the subsite to be created.
anonymousSpecified bool Whether anonymous specified.
presence bool Whether the online presence information is to be enabled for the subsite to be created.
presenceSpecified bool Whether presence specified.
Résultat CreateWebResponseCreateWebResult
        public CreateWebResponseCreateWebResult CreateWeb(string url, string title, string description, string templateName, uint language, bool languageSpecified, uint locale, bool localeSpecified, uint collationLocale, bool collationLocaleSpecified, bool uniquePermissions, bool uniquePermissionsSpecified, bool anonymous, bool anonymousSpecified, bool presence, bool presenceSpecified)
        {
            // Check whether CreateWeb operation succeeds.
            CreateWebResponseCreateWebResult createWebResult = null;
            createWebResult = this.service.CreateWeb(url, title, description, templateName, language, languageSpecified, locale, localeSpecified, collationLocale, collationLocaleSpecified, uniquePermissions, uniquePermissionsSpecified, anonymous, anonymousSpecified, presence, presenceSpecified);

            // Verify the CreateWebResponse structure.
            this.VerifyCreateWeb(createWebResult);
            return createWebResult;
        }