WssInterop.WSSWebExists 方法
會檢查指定的project site是否存在。
命名空間: WebSvcWssInterop
組件: ProjectServerServices (在 ProjectServerServices.dll 中)
語法
'宣告
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/WssInterop/WSSWebExists", 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 Function WSSWebExists ( _
wssWebFullUrl As String _
) As Boolean
'用途
Dim instance As WssInterop
Dim wssWebFullUrl As String
Dim returnValue As Boolean
returnValue = instance.WSSWebExists(wssWebFullUrl)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/WssInterop/WSSWebExists", 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 bool WSSWebExists(
string wssWebFullUrl
)
參數
wssWebFullUrl
類型:System.String若要檢查的網站 URL。
傳回值
類型:System.Boolean
會傳回true如果指定的 SharePoint 網站存在 ;否則,請false。
備註
wssWebFullUrl值是正確格式的 URI 及網站階層已存在,則會驗證WSSWebExists方法。project site名稱不是空白的而且project site已存在,然後會驗證方法。
Project Server 權限
權限 |
描述 |
---|---|
可讓使用者登入 Project Server。通用權限。 |