다음을 통해 공유


SPUserCustomAction.Delete Method (Int32, Int32)

Deletes the custom action and returns the number of actions remaining for the current and parent scope.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Available in SharePoint Online

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.ProtectedMemberOutParam)> _
Protected Sub Delete ( _
    <OutAttribute> ByRef scopeRecordsRemaining As Integer, _
    <OutAttribute> ByRef parentScopeRecordsRemaining As Integer _
)
'Usage
Dim scopeRecordsRemaining As Integer
Dim parentScopeRecordsRemaining As Integer

Me.Delete(scopeRecordsRemaining, _
    parentScopeRecordsRemaining)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.ProtectedMemberOutParam)]
protected void Delete(
    out int scopeRecordsRemaining,
    out int parentScopeRecordsRemaining
)

Parameters

  • scopeRecordsRemaining
    Type: System.Int32

    Gets the number of records remaining in the database for this scope after this custom action is deleted. A negative integer means that the deletion did not happen. (You could have called delete on something that did not exist.)

  • parentScopeRecordsRemaining
    Type: System.Int32

    Gets the number of records remaining in the database for the parent scope after this custom action is deleted. A negative integer means that the deletion did not happen. (You could have called delete on something that did not exist.)

See Also

Reference

SPUserCustomAction Class

SPUserCustomAction Members

Delete Overload

Microsoft.SharePoint Namespace