SPSite.Exists 方法 (Uri)

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.Uri

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

返回值

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

另请参阅

引用

SPSite 类

SPSite 成员

Exists 重载

Microsoft.SharePoint 命名空间