Returns a Boolean value that indicates whether the specified site collection exists.
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
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
类型:System.UriA System.Uri object that represents the Uniform Resource Identifier (URI) of the site collection.
返回值
类型:System.Boolean
true if the site exists; otherwise, false.