Imaging.CheckSubwebAndList Method
Checks the specified URL and attempts to resolve it.
Web Service: ImagingWeb Reference: http://<Site>/_vti_bin/Imaging.asmx
Syntax
<SoapDocumentMethodAttribute("http://schemas.microsoft.com/sharepoint/soap/ois/CheckSubwebAndList", RequestNamespace:="http://schemas.microsoft.com/sharepoint/soap/ois/", ResponseNamespace:="http://schemas.microsoft.com/sharepoint/soap/ois/", Use:=SoapBindingUse.Literal, ParameterStyle:=SoapParameterStyle.Wrapped)> _
Public Function CheckSubwebAndList ( _
strUrl As String _
) As XmlNode
Dim instance As Imaging
Dim strUrl As String
Dim returnValue As XmlNode
returnValue = instance.CheckSubwebAndList(strUrl)
[SoapDocumentMethodAttribute("http://schemas.microsoft.com/sharepoint/soap/ois/CheckSubwebAndList", RequestNamespace="http://schemas.microsoft.com/sharepoint/soap/ois/", ResponseNamespace="http://schemas.microsoft.com/sharepoint/soap/ois/", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped)]
public XmlNode CheckSubwebAndList (
string strUrl
)
Parameters
- strUrl
The URL to analyze.
Return Value
A Microsoft.SharePoint.SoapServer.SoapXml object that contains the resolved URL. For example, if the strUrl parameter is http://MyServer/t1/forms/allitems.aspx
, the Microsoft.SharePoint.SoapServer.SoapXml object contains the following.
<result xmlns="http://schemas.microsoft.com/sharepoint/soap/ois/"
url="http://MyServer/t1/forms/allitems.aspx"
subweb="http://MyServer" list="t1" rest="/forms/allitems.aspx" />
Exceptions
Exception type | Condition |
---|---|
ListNotFound: The requested list is not found. |
|
IsNotLibrary: The requested list, although found, is not a picture library. |
|
ItemNotFound: The requested list item is not found. |
|
FolderNotFound: The requested folder is not found. |
|
InvalidArgument: One or more arguments are not valid. |
|
FileExists: The file already exists, and the user does not specify the overwrite option. |
Remarks
The CheckSubwebAndList method attempts to resolve as much of the URL as it can and leaves the remaining part in rest attribute.