共用方式為


SPGlobalAdmin.UnextendVirtualServer method (SPVirtualServer, Boolean)

NOTE: This API is now obsolete.

若要移除網際網路資訊服務 (IIS) 網站SharePoint Foundation ,從 Web 應用程式所提供之網站,移除 IISSettings 物件和通話SPWebApplication類別之Unprovision方法。(在Windows SharePoint Services 2.0UnextendVirtualServer方法移除SharePoint Foundation從虛擬伺服器,並維持回溯相容性。)

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
<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
    Type: System.Boolean

    若要同時刪除內容資料庫 ; true否則,請false。

請參閱

參照

SPGlobalAdmin class

SPGlobalAdmin members

UnextendVirtualServer overload

Microsoft.SharePoint.Administration namespace