SPGlobalAdmin.UnextendVirtualServer 方法 (SPVirtualServer, Boolean)

请注意:此 API 现在已过时。

若要从 Internet 信息服务 (IIS) 网站中删除SharePoint Foundation ,IISSettings 对象删除的 Web 应用程序承担网站,并调用SPWebApplication类的Unprovision方法。(在Windows SharePoint Services 2.0UnextendVirtualServer方法从虚拟服务器,删除SharePoint Foundation和所维护的用于向后兼容性。

命名空间:  Microsoft.SharePoint.Administration
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
<ObsoleteAttribute("To remove SharePoint from an IIS Web Site, remove the IISSettings object from the Web application that the site is serving, and call SPWebApplication.Unprovision().",  _
    False)> _
Public Sub UnextendVirtualServer ( _
    vs As SPVirtualServer, _
    bDropContentDB As Boolean _
)
用法
Dim instance As SPGlobalAdmin
Dim vs As SPVirtualServer
Dim bDropContentDB As Boolean

instance.UnextendVirtualServer(vs, bDropContentDB)
[ObsoleteAttribute("To remove SharePoint from an IIS Web Site, remove the IISSettings object from the Web application that the site is serving, and call SPWebApplication.Unprovision().", 
    false)]
public void UnextendVirtualServer(
    SPVirtualServer vs,
    bool bDropContentDB
)

参数

  • bDropContentDB
    类型:System.Boolean

    true还要删除该内容数据库。否则为false。

另请参阅

引用

SPGlobalAdmin 类

SPGlobalAdmin 成员

UnextendVirtualServer 重载

Microsoft.SharePoint.Administration 命名空间