Share via


SharePoint Provider::GetLists

This procedure returns information about all the lists in the current SharePoint site.

Arguments

Input Arguments Required Description

<target>

Yes

The Windows SharePoint Services site to query.

Remarks

No remarks.

Sample Code

Comments

This call returns an array of information about the lists in the format shown below.

Example XML Request

<request> 
    <procedure> 
 
        <execute namespace="WSS Provider" procedure="GetLists" 
 
                   impersonate="1"> 
 
            <executeData> 
 
                <target>https://raven003/sites/test</target> 
 
            </executeData> 
 
        </execute> 
 
    </procedure> 
 
</request> 

Example XML Response

<executeData> 
    <target>https://raven003/sites/test</target> 
 
    <Lists> 
 
        <List guid="{F653490F-7AA9-481F-8C77-6FBEACFB7AD4}"  
 
            title="Announcements"  
 
            description="Use the Announcements list to post messages..." 
 
            baseType="GenericList" baseTemplate="Announcements"  
 
            defaultViewUrl="/sites/test/Lists/Announcements/AllItems.aspx" 
 
            lastModified="2004-05-14 09:45:47Z" permID=""  
 
            inheritedSecurity="0" allowAnonymousAccess="0" 
 
            anonymousViewListItems="0" /> 
 
        <List guid="{BDBD1DAC-48CD-4F35-A0E9-73EDCF04ABA3}"  
 
            title="Contacts"  
 
            description="Use the Contacts list for information about..." 
 
            baseType="GenericList" baseTemplate="Contacts"  
 
            defaultViewUrl="/sites/test/Lists/Contacts/AllItems.aspx" 
 
            lastModified="2004-05-14 09:45:47Z" permID=""  
 
            inheritedSecurity="1" allowAnonymousAccess="0" 
 
            anonymousViewListItems="0" /> 
 
    </Lists> 
 
</executeData> 

Typical C# Usage

No typical C# usage.

Applies To

Windows SharePoint Services Provider API for

  • Hosted Messaging and Collaboration version 3.5

  • Hosted Messaging and Collaboration version 3.0

  • Windows-based Hosting version 4.5

  • Windows-based Hosting version 4.0

  • Windows-based Hosting version 3.5

  • Windows-based Hosting for Applications version 1.0

See also

Tasks

SharePoint Provider::GetList
SharePoint Provider::GetAttachments