Compartilhar via


Sites.CreateWeb Method

Namespace:  [Sites Web service]
Web service reference: http://Site/_vti_bin/Sites.asmx

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/CreateWeb", RequestNamespace := "https://schemas.microsoft.com/sharepoint/soap/",  _
    ResponseNamespace := "https://schemas.microsoft.com/sharepoint/soap/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function CreateWeb ( _
    url As String, _
    title As String, _
    description As String, _
    templateName As String, _
    language As UInteger, _
    languageSpecified As Boolean, _
    locale As UInteger, _
    localeSpecified As Boolean, _
    collationLocale As UInteger, _
    collationLocaleSpecified As Boolean, _
    uniquePermissions As Boolean, _
    uniquePermissionsSpecified As Boolean, _
    anonymous As Boolean, _
    anonymousSpecified As Boolean, _
    presence As Boolean, _
    presenceSpecified As Boolean _
) As String
'Usage
Dim instance As Sites
Dim url As String
Dim title As String
Dim description As String
Dim templateName As String
Dim language As UInteger
Dim languageSpecified As Boolean
Dim locale As UInteger
Dim localeSpecified As Boolean
Dim collationLocale As UInteger
Dim collationLocaleSpecified As Boolean
Dim uniquePermissions As Boolean
Dim uniquePermissionsSpecified As Boolean
Dim anonymous As Boolean
Dim anonymousSpecified As Boolean
Dim presence As Boolean
Dim presenceSpecified As Boolean
Dim returnValue As String

returnValue = instance.CreateWeb(url, _
    title, description, templateName, _
    language, languageSpecified, locale, _
    localeSpecified, collationLocale, _
    collationLocaleSpecified, uniquePermissions, _
    uniquePermissionsSpecified, anonymous, _
    anonymousSpecified, presence, presenceSpecified)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/CreateWeb", RequestNamespace = "https://schemas.microsoft.com/sharepoint/soap/", 
    ResponseNamespace = "https://schemas.microsoft.com/sharepoint/soap/", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public string 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
)

Parameters

Return Value

Type: System.String

See Also

Reference

Sites Class

Sites Members

Sites Web Service