共用方式為


SPWeb.Recycle method

將網站傳送到 [資源回收筒]。

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

Syntax

'宣告
Public Sub Recycle
'用途
Dim instance As SPWeb

instance.Recycle()
public void Recycle()

Exceptions

Exception Condition
SPException

網站是根網站。

NotSupportedException

無法還原該網站。

備註

網站可以還原,或從資源回收筒永久刪除。

請參閱

參照

SPWeb class

SPWeb members

Microsoft.SharePoint namespace