共用方式為


SPWebApplication.RecycleBinRetentionPeriod property

取得或設定的項目會保留在資源回收筒中的天數。

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

Syntax

'宣告
Public Property RecycleBinRetentionPeriod As Integer
    Get
    Set
'用途
Dim instance As SPWebApplication
Dim value As Integer

value = instance.RecycleBinRetentionPeriod

instance.RecycleBinRetentionPeriod = value
public int RecycleBinRetentionPeriod { get; set; }

Property value

Type: System.Int32
32 位元整數,其中包含的天數。預設值為 30 天。

請參閱

參照

SPWebApplication class

SPWebApplication members

Microsoft.SharePoint.Administration namespace