SPSite.Exists method (Uri)
Returns a Boolean value that indicates whether the specified site collection exists.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Function Exists ( _
uri As Uri _
) As Boolean
'用途
Dim uri As Uri
Dim returnValue As Boolean
returnValue = SPSite.Exists(uri)
public static bool Exists(
Uri uri
)
參數
uri
Type: System.UriA System.Uri object that represents the Uniform Resource Identifier (URI) of the site collection.
傳回值
Type: System.Boolean
true if the site exists; otherwise, false.