Folder クラス

Represents a folder on a SharePoint Web site.

継承階層

System.Object
  Microsoft.SharePoint.Client.ClientObject
    Microsoft.SharePoint.Client.Folder

名前空間:  Microsoft.SharePoint.Client
アセンブリ:   Microsoft.SharePoint.Client.Silverlight (Microsoft.SharePoint.Client.Silverlight.dll 内);  Microsoft.SharePoint.Client.Phone (Microsoft.SharePoint.Client.Phone.dll 内)  Microsoft.SharePoint.Client (Microsoft.SharePoint.Client.dll 内)

構文

'宣言
Public Class Folder _
    Inherits ClientObject
'使用
Dim instance As Folder
public class Folder : ClientObject

注釈

The UniqueContentTypeOrder property is not included in the default scalar property set for this type.

This code example lists the folders on the current website.

using System;
using Microsoft.SharePoint.Client;

namespace Microsoft.SDK.SharePointFoundation.Samples
{
    class FolderExample
    {
        static void Main()
        {
            string siteUrl = "http://MyServer/sites/MySiteCollection";

            ClientContext clientContext = new ClientContext(siteUrl);
            Web site = clientContext.Web;
            FolderCollection collFolder = site.Folders;
            clientContext.Load(collFolder);
            clientContext.ExecuteQuery();

            Console.WriteLine("The current site contains the following folders:\n\n");
            foreach (Folder myFolder in collFolder)
               Console.WriteLine(myFolder.Name);
        }
    }
}

スレッド セーフ

この型のパブリック static (Visual Basic のShared ) メンバーはいずれもスレッド セーフです。インスタンス メンバーはスレッド セーフになるという保証はありません。

関連項目

参照先

Folder メンバー

Microsoft.SharePoint.Client 名前空間