SiteData.GetURLSegments Method
A string representing the identifiers of a site, list or list item depending on the specified URL. The behavior of the operation depends on the specified URL.
Namespace: [SiteData Web service]
Web service reference: http://Site/_vti_bin/SiteData.asmx
Syntax
'Declaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/GetURLSegments", RequestNamespace := "https://schemas.microsoft.com/sharepoint/soap/", _
ResponseNamespace := "https://schemas.microsoft.com/sharepoint/soap/", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function GetURLSegments ( _
strURL As String, _
<OutAttribute> ByRef strWebID As String, _
<OutAttribute> ByRef strBucketID As String, _
<OutAttribute> ByRef strListID As String, _
<OutAttribute> ByRef strItemID As String _
) As Boolean
'Usage
Dim instance As SiteData
Dim strURL As String
Dim strWebID As String
Dim strBucketID As String
Dim strListID As String
Dim strItemID As String
Dim returnValue As Boolean
returnValue = instance.GetURLSegments(strURL, _
strWebID, strBucketID, strListID, _
strItemID)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/GetURLSegments", RequestNamespace = "https://schemas.microsoft.com/sharepoint/soap/",
ResponseNamespace = "https://schemas.microsoft.com/sharepoint/soap/",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public bool GetURLSegments(
string strURL,
out string strWebID,
out string strBucketID,
out string strListID,
out string strItemID
)
Parameters
strURL
Type: System.StringSpecifies an absolute URL of any item in the context site.
strWebID
Type: System.StringSpecifies the GUID of the site. This GUID must be enclosed in curly braces ({}).
strBucketID
Type: System.StringSpecifies the GUID the external security provider. This GUID must be enclosed in curly braces ({}).
strListID
Type: System.StringSpecifies the GUID the list. This GUID must be enclosed in curly braces ({}).
strItemID
Type: System.StringSpecifies the ID of the list item.
Return Value
Type: System.Boolean