WssInterop.CreateWssSite 方法

创建指定的项目和服务器的 SharePoint 网站。

命名空间:  WebSvcWssInterop
程序集:  ProjectServerServices(位于 ProjectServerServices.dll 中)

语法

声明
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/WssInterop/CreateWssSite", RequestNamespace := "https://schemas.microsoft.com/office/project/server/webservices/WssInterop/",  _
    ResponseNamespace := "https://schemas.microsoft.com/office/project/server/webservices/WssInterop/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Sub CreateWssSite ( _
    projectUID As Guid, _
    wssServerUID As Guid, _
    wssWebFullUrl As String, _
    webTemplateLcid As Integer, _
    webTemplateName As String _
)
用法
Dim instance As WssInterop
Dim projectUID As Guid
Dim wssServerUID As Guid
Dim wssWebFullUrl As String
Dim webTemplateLcid As Integer
Dim webTemplateName As String

instance.CreateWssSite(projectUID, wssServerUID, _
    wssWebFullUrl, webTemplateLcid, _
    webTemplateName)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/WssInterop/CreateWssSite", RequestNamespace = "https://schemas.microsoft.com/office/project/server/webservices/WssInterop/", 
    ResponseNamespace = "https://schemas.microsoft.com/office/project/server/webservices/WssInterop/", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void CreateWssSite(
    Guid projectUID,
    Guid wssServerUID,
    string wssWebFullUrl,
    int webTemplateLcid,
    string webTemplateName
)

参数

  • projectUID
    类型:System.Guid

    项目的唯一标识符。

  • wssServerUID
    类型:System.Guid

    服务器场中的服务器的唯一标识符。

  • wssWebFullUrl
    类型:System.String

    若要创建 SharePoint 网站的完整 URL。

  • webTemplateLcid
    类型:System.Int32

    网站模板的区域设置标识符。

  • webTemplateName
    类型:System.String

    网站模板的名称。

备注

Project Server 权限

如果不明确拒绝ManageWindowsSharePointServices权限, CreateWssSite方法检查用户是否具有以下权限之一。

权限

说明

ManageWindowsSharePointServices

允许用户管理项目网站。全局权限。

NewProject

允许用户创建项目。全局权限。

PublishProject

允许用户发布指定的项目。类别权限。

另请参阅

引用

WssInterop 类

WssInterop 成员

WebSvcWssInterop 命名空间

其他资源

Locale ID (LCID) Chart