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方法會檢查使用者是否具有下列權限的其中一個。
權限 |
描述 |
---|---|
可讓使用者管理project site。通用權限。 |
|
可讓使用者建立一個專案。通用權限。 |
|
可讓使用者發佈指定的專案。類別權限。 |