SiteData.GetContent Method
A string representing information about the web application.
Web Service: Site DataWeb Reference: http://<Site>/_vti_bin/SiteData.asmx
Syntax
<SoapDocumentMethodAttribute("http://schemas.microsoft.com/sharepoint/soap/GetContent", RequestNamespace:="http://schemas.microsoft.com/sharepoint/soap/", ResponseNamespace:="http://schemas.microsoft.com/sharepoint/soap/", Use:=SoapBindingUse.Literal, ParameterStyle:=SoapParameterStyle.Wrapped)> _
Public Function GetContent ( _
objectType As ObjectType, _
objectId As String, _
folderUrl As String, _
itemId As String, _
retrieveChildItems As Boolean, _
securityOnly As Boolean, _
ByRef lastItemIdOnPage As String _
) As String
Dim instance As SiteData
Dim objectType As ObjectType
Dim objectId As String
Dim folderUrl As String
Dim itemId As String
Dim retrieveChildItems As Boolean
Dim securityOnly As Boolean
Dim lastItemIdOnPage As String
Dim returnValue As String
returnValue = instance.GetContent(objectType, objectId, folderUrl, itemId, retrieveChildItems, securityOnly, lastItemIdOnPage)
[SoapDocumentMethodAttribute("http://schemas.microsoft.com/sharepoint/soap/GetContent", RequestNamespace="http://schemas.microsoft.com/sharepoint/soap/", ResponseNamespace="http://schemas.microsoft.com/sharepoint/soap/", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped)]
public string GetContent (
ObjectType objectType,
string objectId,
string folderUrl,
string itemId,
bool retrieveChildItems,
bool securityOnly,
ref string lastItemIdOnPage
)
Parameters
- objectType
The change tracking space to report about, either "ContentDatabase" or "Site". All other objectType values, as defined in ObjectType should not be used. The server may treat all other types as "Site". Note that "Site" in the context of this parameter actually means site collection.
- objectId
Specifies the name or GUID of an object. The GUID should be enclosed in curly braces ({}).
- folderUrl
Specifies the folder name or the URL of a folder. The URL may be a absolute URL or a server-relative URL.
- itemId
Specifies the ID of the list item.
- retrieveChildItems
Flag specifying whether to get information about the child sites, lists and folders.
- securityOnly
Flag specifying whether to get all the information for a list item or items of a folder. If true, the operation must return only the mandatory information, else the operation must return all the information.
- lastItemIdOnPage
Used for pagination. Clients use this to sequentially retrieve large amount of data.
Remarks
Returns change information (ChangeId) about the content database and site collection. Also returns information about the web application, site collection, site, list, list item, folder and attachment.
Note
GetContent operation is polymorphic; it can be used (when called with proper parameters) instead of specific traversal operations - GetSite, GetWeb, EnumerateFolder, GetListCollection, GetList, GetListItems, GetAttachments. GetContent fully covers specific traversal operations functionality, albeit details of input parameters and syntax of the response might differ.