SPMobileComponent.AllowDelete 方法
获取一个值,该值指示当前用户是否有权删除指定的列表项。
命名空间: Microsoft.SharePoint.Mobile.WebControls
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Protected Overridable Function AllowDelete ( _
item As SPListItem _
) As Boolean
用法
Dim item As SPListItem
Dim returnValue As Boolean
returnValue = Me.AllowDelete(item)
protected virtual bool AllowDelete(
SPListItem item
)
参数
item
类型:Microsoft.SharePoint.SPListItem用户需要知道他 / 她是否有权删除SPListItem对象。
返回值
类型:System.Boolean
true如果用户有权删除该项。否则为false。