SPAttachmentCollection.RecycleNow 方法

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

语法

声明
Public Sub RecycleNow ( _
    leafName As String _
)
用法
Dim instance As SPAttachmentCollection
Dim leafName As String

instance.RecycleNow(leafName)
public void RecycleNow(
    string leafName
)

参数

异常

异常 条件
ArgumentOutOfRangeException

leafName不存在集合中。

备注

如果使用RecycleNow方法回收附件,则操作会立即生效,并不需要调用Update方法来更新列表项和刷新版本信息。

另请参阅

引用

SPAttachmentCollection 类

SPAttachmentCollection 成员

Microsoft.SharePoint 命名空间