다음을 통해 공유


SPGlobalAdmin.UnextendVirtualServer method (Uri, Boolean)

NOTE: This API is now obsolete.

To remove SharePoint Foundation from an Internet Information Services (IIS) Web site, remove the IISSettings object from the Web application that the site is serving, and call the Unprovision method of the SPWebApplication class. (In Windows SharePoint Services 2.0 the UnextendVirtualServer method removed SharePoint Foundation from the virtual server, and is maintained for backward compatibility.)

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

Syntax

'Declaration
<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 ( _
    uri As Uri, _
    bDropContentDB As Boolean _
)
'Usage
Dim instance As SPGlobalAdmin
Dim uri As Uri
Dim bDropContentDB As Boolean

instance.UnextendVirtualServer(uri, 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(
    Uri uri,
    bool bDropContentDB
)

Parameters

  • uri
    Type: System.Uri

    An absolute URI that specifies the server.

  • bDropContentDB
    Type: System.Boolean

    true to also delete the content database; otherwise, false.

See also

Reference

SPGlobalAdmin class

SPGlobalAdmin members

UnextendVirtualServer overload

Microsoft.SharePoint.Administration namespace