Share via


SharePoint Provider::EnumerateFolder

Returns information about the files and folders within a folder on a SharePoint site.

Arguments

Input Arguments Required Description

<target>

Yes

The site to query.

<folderUrl>

Yes

A string that contains the site-relative URL of the folder.

Remarks

No remarks.

Sample Code

Comments

This call Returns an array that contains information about the files and folders, including their URLs, the date and time that each item was last modified, and a Boolean value that specifies whether the item is a folder.

Example XML Request

<request> 
    <procedure> 
 
        <execute namespace="WSS Provider" procedure="EnumerateFolder" 
 
                   impersonate="1"> 
 
            <executeData> 
 
                <target>https://raven003/sites/test</target> 
 
                <folderUrl>Shared Documents/TestFolder</folderUrl> 
 
            </executeData> 
 
        </execute> 
 
    </procedure> 
 
</request> 

Example XML Response

<executeData> 
    <target>https://raven003/sites/test</target> 
 
    <folderUrl>Shared Documents/TestFolder</folderUrl> 
 
    <urls> 
 
        <URL isFolder="0" lastModified="2004-05-27 04:29:24Z"  
 
            URL="Shared Documents/TestFolder/boot.ini" /> 
 
        <URL isFolder="0" lastModified="2004-05-27 04:30:57Z"  
 
            URL="Shared Documents/TestFolder/CreateSite.xml" /> 
 
    </urls> 
 
</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