Export (0) Print
Expand All

SPSite.Exists Method

Returns a Boolean value that indicates whether the specified site collection exists.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

public static bool Exists(
	Uri uri
)

Parameters

uri
Type: System.Uri
A System.Uri object that represents the Uniform Resource Identifier (URI) of the site collection.

Return Value

Type: System.Boolean
true if the site exists; otherwise, false.

Community Additions

ADD
Show:
© 2014 Microsoft