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

0x1

ListNotFound: The requested list is not found.

0x2

IsNotLibrary: The requested list, although found, is not a picture library.

0x3

ItemNotFound: The requested list item is not found.

0x4

FolderNotFound: The requested folder is not found.

0x5

InvalidArgument: One or more arguments are not valid.

0x6

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.

See Also

Reference

Imaging Class
Imaging Members
Imaging Web Service