SiteData.GetContent method

A string representing information about the web application.

Namespace:  WebSvcSiteData
Assembly:  STSSOAP (in STSSOAP.dll)

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/GetContent", RequestNamespace := "https://schemas.microsoft.com/sharepoint/soap/",  _
    ResponseNamespace := "https://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
'Usage
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("https://schemas.microsoft.com/sharepoint/soap/GetContent", RequestNamespace = "https://schemas.microsoft.com/sharepoint/soap/", 
    ResponseNamespace = "https://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
    Type: WebSvcSiteData.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
    Type: System.String

    Specifies the name or GUID of an object. The GUID should be enclosed in curly braces ({}).

  • folderUrl
    Type: System.String

    Specifies the folder name or the URL of a folder. The URL may be a absolute URL or a server-relative URL.

  • retrieveChildItems
    Type: System.Boolean

    Flag specifying whether to get information about the child sites, lists and folders.

  • securityOnly
    Type: System.Boolean

    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
    Type: System.String

    Used for pagination. Clients use this to sequentially retrieve large amount of data.

Return value

Type: System.String

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.

See also

Reference

SiteData class

SiteData members

WebSvcSiteData namespace