Site Class

Represents a collection of sites in a Web application, including a top-level Web site and all its subsites.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Client.ClientObject
    Microsoft.SharePoint.Client.Site

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<ScriptTypeAttribute("SP.Site", ServerTypeId := "{e1bb82e8-0d1e-4e52-b90c-684802ab4ef6}")> _
Public Class Site _
    Inherits ClientObject
'Usage
Dim instance As Site
[ScriptTypeAttribute("SP.Site", ServerTypeId = "{e1bb82e8-0d1e-4e52-b90c-684802ab4ef6}")]
public class Site : ClientObject

Remarks

Each Site object, or site collection, is represented within a SiteCollection object that consists of the collection of all site collections in the Web application.

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

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Site Members

Microsoft.SharePoint.Client Namespace