SPAccessRequests.ChangeRequestStatus method

Changes the status of an access request.

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

Syntax

'Declaration
Public Shared Sub ChangeRequestStatus ( _
    itemId As Integer, _
    newStatus As Integer, _
    convStr As String, _
    permType As String, _
    permissionLevel As Integer _
)
'Usage
Dim itemId As Integer
Dim newStatus As Integer
Dim convStr As String
Dim permType As String
Dim permissionLevel As IntegerSPAccessRequests.ChangeRequestStatus(itemId, _
    newStatus, convStr, permType, permissionLevel)
public static void ChangeRequestStatus(
    int itemId,
    int newStatus,
    string convStr,
    string permType,
    int permissionLevel
)

Parameters

  • itemId
    Type: System.Int32

    Identifier of the access request.

  • newStatus
    Type: System.Int32

    The new desired status for the request.

  • convStr
    Type: System.String

    A message to include with this update.

  • permType
    Type: System.String

    New permission type for this request.

  • permissionLevel
    Type: System.Int32

    New permission level for this request.

Remarks

You must be in the site owners group to be able to modify an access request.

See also

Reference

SPAccessRequests class

SPAccessRequests members

Microsoft.SharePoint namespace